diff options
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index d4414406..3fc7ad13 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -17,8 +17,9 @@ prompt() { # Basic prompt shape depends on whether we're in SSH or not PS1= - [[ -n $SSH_CLIENT ]] && [[ -n $SSH_CONNECTION ]] && + if [[ -n $SSH_CLIENT ]] || [[ -n $SSH_CONNECTION ]] ; then PS1=$PS1'\u@\h:' + fi PS1=$PS1'\w' # Add sub-commands; VCS, job, and return status checks |