From c0db7ba6989623aae2b9a2c2f927808282df8fbe Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 5 Jan 2020 15:05:13 +0100 Subject: fix prompt --- .bash-powerline.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.bash-powerline.sh') diff --git a/.bash-powerline.sh b/.bash-powerline.sh index 59843ce..e635b11 100644 --- a/.bash-powerline.sh +++ b/.bash-powerline.sh @@ -85,9 +85,9 @@ __powerline() { fi PS1="$cwd$git$symbol" - - # Display hostname in prompt if in a remote shell - [ "$SSH_TTY" ] && PS1="\\h:$PS1" + if [ "$SSH_TTY" ]; then + PS1="\\h:$PS1" + fi } PROMPT_COMMAND="ps1${PROMPT_COMMAND:+; $PROMPT_COMMAND}" -- cgit v1.2.3