disable powerline in screen/tmux

pull/1/head
Andrew Coleman 2019-01-16 20:52:59 -05:00
parent c4a7066b7e
commit ff60db66a5
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ for k in $HOME/bin/*.bash ; do . $k ; done
function _update_ps1() { function _update_ps1() {
PS1="$(powerline-go -error $?)" PS1="$(powerline-go -error $?)"
} }
if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" && "$TERM" != "screen" ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
else else
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ ' PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '