diff options
| -rw-r--r-- | .bash-powerline.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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}" |
