Powerline-like PS1 for bash To enable use: PROMPT_COMMAND='PS1=$($HOME/bin/prompt $?)', add to .bashrc to make it permanent.