A minimal PS1 with git branch support.
- The PS1 is always
$
, so terminal output can easily be copied into documentation without having to reformat for pretty output - Using
PROMPT_COMMAND
, a feature supported by iTerm2, gnome-terminal and probably other terminal emulators, thecwd
andgit
branch are always displayed in the tab header
Bash:
$ source ps1.sh
Zsh:
$ source ps1.zsh
MIT