aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 11:30:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 11:30:40 +1200
commitc549fd2782547ebf37e0b7c08b70dba76b1a5eef (patch)
tree855535dba3539cb0d6ac9143af69dab3827cabd2 /bash/bashrc.d/prompt.bash
parentUse arithmetic expression for argument count (diff)
downloaddotfiles-c549fd2782547ebf37e0b7c08b70dba76b1a5eef.tar.gz
dotfiles-c549fd2782547ebf37e0b7c08b70dba76b1a5eef.zip
Remove unneeded quoting within [[ ]]
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 9b23c044..23c9d64b 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -96,7 +96,7 @@ prompt() {
# If there are changes in the tree, add an exclamation mark to the
# state
- if [[ -n "$(hg status 2>/dev/null)" ]]; then
+ if [[ -n $(hg status 2>/dev/null) ]]; then
state="!"
fi
@@ -129,7 +129,7 @@ prompt() {
# If there are changes in the working directory, add an exclamation
# mark to the state
- if [[ -n "$(svn status 2>/dev/null)" ]]; then
+ if [[ -n $(svn status 2>/dev/null) ]]; then
state="!"
fi
@@ -151,7 +151,7 @@ prompt() {
# Show the count of background jobs in curly brackets
job)
- if [[ -n "$(jobs)" ]]; then
+ if [[ -n $(jobs) ]]; then
printf '{%d}' "$(jobs | sed -n '$=')"
fi
;;