aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-21 15:41:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-21 15:41:11 +1200
commit11a907349bc8db747aecd899ae1f5837e71fc92c (patch)
tree3652dac86828c259f7b9f371cfe6e29090da95fa
parentRemove bell from minimal prompt (diff)
downloaddotfiles-11a907349bc8db747aecd899ae1f5837e71fc92c.tar.gz
dotfiles-11a907349bc8db747aecd899ae1f5837e71fc92c.zip
Replace stray [ test with [[ in prompt script
-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 478c6594..4a657508 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -78,7 +78,7 @@ prompt() {
# If there are any new unignored files in the working tree, add a
# question mark to the state
- if [ -n "$(git ls-files --others --exclude-standard)" ]; then
+ if [[ -n $(git ls-files --others --exclude-standard) ]]; then
state=$state?
fi