Bloc notes | Prompt bash powerline/emacs


Posted on January 26, 2018 comments []
export TERM=xterm-256color

function _update_ps1() {
    PS1="$(powerline-shell $?)"
}

if [ "$TERM" != "linux" ] && [ -z "$EMACS" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi