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:
parent
27a5dc855d
commit
8752be3b14
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user