aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 17:22:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 17:22:21 +1200
commita909630c4373622953bc3f309ca09860d45e5fcc (patch)
treeef11808de46b091680b1d0783f9ffe6d70bb401c /bash/bashrc.d/prompt.bash
parentCheck SSH_CLIENT *and* SSH_CONNECTION for prompt (diff)
downloaddotfiles-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.bash3
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