aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 17:20:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 17:20:35 +1200
commit66a28330d4e55301378681a7948903b0f08a20b5 (patch)
treecfd38273e5a1b68c7166606d651c2a2b7878f83f /bash/bashrc.d
parentMerge branch 'freebsd' (diff)
downloaddotfiles-66a28330d4e55301378681a7948903b0f08a20b5.tar.gz
dotfiles-66a28330d4e55301378681a7948903b0f08a20b5.zip
Check SSH_CLIENT *and* SSH_CONNECTION for prompt
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/prompt.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 2559d9d8..d4414406 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -17,7 +17,7 @@ prompt() {
# Basic prompt shape depends on whether we're in SSH or not
PS1=
- [[ -n $SSH_CONNECTION ]] &&
+ [[ -n $SSH_CLIENT ]] && [[ -n $SSH_CONNECTION ]] &&
PS1=$PS1'\u@\h:'
PS1=$PS1'\w'