From 66a28330d4e55301378681a7948903b0f08a20b5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 23 Aug 2016 17:20:35 +1200 Subject: Check SSH_CLIENT *and* SSH_CONNECTION for prompt --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d') 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' -- cgit v1.2.3