powerline: Do not start powerline on 'linux' console

The linux console is not often used, but powerline messes this up with
unsupported characters.
This commit is contained in:
Jens Sauer 2020-11-24 16:17:05 +01:00
parent 27a5dc855d
commit 8752be3b14

View File

@ -119,9 +119,11 @@ if [ -f /usr/share/bash-completion/completions/ssh ]; then
fi
# Start powerline
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: $(dirs +0)\007"'
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
. /usr/share/powerline/bindings/bash/powerline.sh
if [ $TERM != "linux" ]; then
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: $(dirs +0)\007"'
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
. /usr/share/powerline/bindings/bash/powerline.sh
fi
fi
# Base16 Shell