diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 17:20:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 17:20:35 +1200 |
commit | 66a28330d4e55301378681a7948903b0f08a20b5 (patch) | |
tree | cfd38273e5a1b68c7166606d651c2a2b7878f83f /pdksh/pdkshrc.d | |
parent | Merge branch 'freebsd' (diff) | |
download | dotfiles-66a28330d4e55301378681a7948903b0f08a20b5.tar.gz dotfiles-66a28330d4e55301378681a7948903b0f08a20b5.zip |
Check SSH_CLIENT *and* SSH_CONNECTION for prompt
Diffstat (limited to 'pdksh/pdkshrc.d')
-rw-r--r-- | pdksh/pdkshrc.d/prompt.pdksh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdksh/pdkshrc.d/prompt.pdksh b/pdksh/pdkshrc.d/prompt.pdksh index 05e3eced..67844779 100644 --- a/pdksh/pdkshrc.d/prompt.pdksh +++ b/pdksh/pdkshrc.d/prompt.pdksh @@ -17,7 +17,7 @@ prompt() { on) # 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' |