diff --git a/scripts.org b/scripts.org index 93087eb..734ce3d 100644 --- a/scripts.org +++ b/scripts.org @@ -778,6 +778,14 @@ Wrapper command around the equivalent [[file:shells.org::*=o=][fish function]]. #+begin_src bash :tangle (haris/tangle-home ".local/bin/o") fish -C "o $(printf "%q " "$@")" #+end_src +** =get-os-type= +Get the OS type. +#+begin_src shell :tangle (haris/tangle-home ".local/bin/get-os-type") + cat /etc/lsb-release 2>/dev/null | grep -q 'Ubuntu' && echo 'ubuntu' && exit + cat /etc/os-release 2>/dev/null | grep -q 'Arch Linux' && echo 'arch' && exit + echo 'Unsupported OS' >&2 + exit 1 +#+end_src * Applications These are programs that are meant to be used mostly interactively. As such, they are designed to be easily integrated into dmenu scripts. diff --git a/terminal.org b/terminal.org index b140657..959dff7 100644 --- a/terminal.org +++ b/terminal.org @@ -13,7 +13,7 @@ If you are viewing this on Linux, you can find the config reference [[file:/usr/ shell: program: fish scrolling: - history: 100000 + history: 100000 # Unfortunately, this is a hard limit in alacritty selection: save_to_clipboard: true hints: diff --git a/vcs.org b/vcs.org index df7e604..eba5ee7 100644 --- a/vcs.org +++ b/vcs.org @@ -44,6 +44,7 @@ My config for version control systems I use (overwhelmingly git + GitHub). a = add b = branch chx = update-index --chmod=+x + root = rev-parse --show-toplevel # Needed for older versions of git #+end_src *** ls #+begin_src gitconfig