aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-25 11:10:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-25 11:10:56 +1200
commit3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab (patch)
tree6c7ee964c72c8505e4cea28dbedd8c5bcbc9802f
parentConsistent spacing for .gitmodules (diff)
downloaddotfiles-3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab.tar.gz
dotfiles-3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab.zip
Restore previous test syntax
This reads a bit better
-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 d981acce..89cf4ef7 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -67,7 +67,7 @@ prompt() {
git symbolic-ref --quiet HEAD \
|| git rev-parse --short HEAD
} 2>/dev/null );
- if ! [[ $branch ]]; then
+ if [[ ! $branch ]]; then
return 1
fi
branch=${branch##*/}