Wiki
Home

bash

- <http://wiki.bash-hackers.org/doku.php>
- <http://tldp.org/LDP/abs/html/>
- <http://mywiki.wooledge.org/BashPitfalls>
- <http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming>
- <http://redsymbol.net/articles/unofficial-bash-strict-mode/>
- <https://github.com/dylanaraps/pure-sh-bible>
- https://mywiki.wooledge.org/BashGuide

-

Vim Mode

- `set -o vi`
  
  Cheat Sheet:
  <http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf>

Farben

- ```bash
  PS1=${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]
    PS1=${debian_chroot:+($debian_chroot)}\[\033[00;32m\]\u@\h\[\033[00;34m\] \w \$\[\033[00m\]
  ```
- <https://wiki.archlinux.de/title/Bash-Prompt_anpassen>
- <https://wiki.ubuntuusers.de/Bash/Prompt>

Debug

- bash -x script

Hide Output

- <https://stackoverflow.com/questions/617182/with-bash-scripting-how-can-i-suppress-all-output-from-a-command>
scriptname >/dev/null 2>&1