Bash

%toc

Vim Mode

set -o vi

Cheat Sheet: http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf

Farben

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\]

Debug

bash -x script

Hide Output

scriptname >/dev/null 2>&1