From a909630c4373622953bc3f309ca09860d45e5fcc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 23 Aug 2016 17:22:21 +1200 Subject: Correct test written in previous commit --- bash/bashrc.d/prompt.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bash/bashrc.d') 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 -- cgit v1.2.3