#+TITLE: bash #+SUBTITLE: Config for Debian based systems #+DESCRIPTION: Config for Debian based systems #+KEYWORDS: bash debian # Export underscore as underscore instead of highlight in HTML: #+OPTIONS: ^:nil num:nil # Include usable macros from https://github.com/fniessen/org-macros: #+INCLUDE: ../org-mode/macros/org-macros.setup #+INFOJS_OPT: view:showall ltoc:nil path:https://iki.fi/~pyyhttu/debian/org-mode/js/org-info.js #+HTML_HEAD: * Bash ** Configuration *** hstr ~$ sudo aptitude install hstr~ HSTR installation: https://github.com/dvorka/hstr/blob/master/INSTALLATION.md#build-on-debian Compiled from source because of: https://github.com/dvorka/hstr/issues/391 HSTR configuration: https://github.com/dvorka/hstr/blob/master/CONFIGURATION.md *** z :archived: https://formulae.brew.sh/formula/z As per https://github.com/rupa/z/issues/229 #+BEGIN_SRC bash git clone https://github.com/rupa/z/ ~/tmp/z chmod +x ~/tmp/z/z.sh mv ~/tmp/z/z.sh /usr/local/bin/ mv ~/tmp/z/z.1 /usr/local/share/man/man1 rm -rf ~/tmp/z #+END_SRC *** ag Usage and installation as per: https://www.cyberciti.biz/open-source/command-line-hacks/ag-supercharge-string-search-through-directory-hierarchy/ ~$ sudo aptitude install silversearcher-ag~ *** fd Alternative to =ag=. Usage and installation as per: https://github.com/sharkdp/fd#on-debian ~$ sudo aptitude install fd~ ~$ ln -s $(which fdfind) ~/.local/bin/fd~ *** duf Usage and installation as per: https://github.com/muesli/duf#linux ~$ sudo aptitude install duf~ *** dust First, install [[https://www.freecodecamp.org/news/what-is-deb-get-debian-package-manager/][deb-get]]: ~$ curl -sL https://raw.githubusercontent.com/wimpysworld/deb-get/main/deb-get | sudo -E bash -s install deb-get~ Then install dust as per: https://github.com/bootandy/dust#install ~$ deb-get install du-dust~ ~$ dust~ *** ncdu ~$ sudo aptitude install ncdu~ Also note version 2 is in the making: https://dev.yorhel.nl/ncdu/changes2 *** tldr ~$ sudo aptitude install tldr~ ~$ tldr tar~ *** eza As per: https://github.com/eza-community/eza ~$ sudo aptitude install eza~ Then alias it in =~.bashrc=: #+BEGIN_SRC alias ls="eza" # ls #+END_SRC Other clients: https://tldr.sh/ * More sources to check - https://altbox.dev - https://jvns.ca/blog/2022/04/12/a-list-of-new-ish--command-line-tools/ - https://new.pythonforengineers.com/blog/best-command-line-tools-ive-played-with/