export TERM=xterm-256color function _update_ps1() { PS1="$(powerline-shell $?)" } if [ "$TERM" != "linux" ] && [ -z "$EMACS" ]; then PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" fi