From e385b3986cf9806f7e662b818ded0eedd0d23634 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 31 Aug 2016 12:52:00 +1200 Subject: Use shorter "or" syntax within [[ ]] --- 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 a4d07f7e..821afe25 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= - if [[ -n $SSH_CLIENT ]] || [[ -n $SSH_CONNECTION ]] ; then + if [[ -n $SSH_CLIENT || -n $SSH_CONNECTION ]] ; then PS1=$PS1'\u@\h:' fi PS1=$PS1'\w' -- cgit v1.2.3