aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-31 12:52:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-31 12:52:00 +1200
commite385b3986cf9806f7e662b818ded0eedd0d23634 (patch)
tree5de6feca3547d8503ae4417900b40be6a04a58e7 /bash/bashrc.d
parentBuild URxvt Perls with shb(1) (diff)
downloaddotfiles-e385b3986cf9806f7e662b818ded0eedd0d23634.tar.gz
dotfiles-e385b3986cf9806f7e662b818ded0eedd0d23634.zip
Use shorter "or" syntax within [[ ]]
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 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'