diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 17:22:21 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 17:22:21 +1200 |
commit | a909630c4373622953bc3f309ca09860d45e5fcc (patch) | |
tree | ef11808de46b091680b1d0783f9ffe6d70bb401c /bash/bashrc.d/prompt.bash | |
parent | Check SSH_CLIENT *and* SSH_CONNECTION for prompt (diff) | |
download | dotfiles-a909630c4373622953bc3f309ca09860d45e5fcc.tar.gz dotfiles-a909630c4373622953bc3f309ca09860d45e5fcc.zip |
Correct test written in previous commit
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-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 |