From ff60db66a54eed80b0e0cf38065bc8e77ca34c35 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Wed, 16 Jan 2019 20:52:59 -0500 Subject: [PATCH] disable powerline in screen/tmux --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 445f16f..a1840df 100644 --- a/.bashrc +++ b/.bashrc @@ -30,7 +30,7 @@ for k in $HOME/bin/*.bash ; do . $k ; done function _update_ps1() { 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" else PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '