summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-08 10:07:03 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-08 10:07:03 -0400
commit173c3cf1859b2adcae5abd534f31bdd8018d2a7e (patch)
tree7cc29a9f00c321f4660369dc691a77a57d9d7eb6
parentccefe3e3923a28887b96ba564cd6a4d3963f4b95 (diff)
fix quoting in _STATUS in .config/bash/rc.sh
-rw-r--r--.config/bash/rc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/bash/rc.sh b/.config/bash/rc.sh
index faf8116..90e5b2d 100644
--- a/.config/bash/rc.sh
+++ b/.config/bash/rc.sh
@@ -60,7 +60,7 @@ if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then
BLUE="$(tput setaf 4)"
_STATUS="${BOLD}["
- _STATUS+='$(v=$?; if [[ $v = 0 ]]; then c='"'${GREEN}'"'; else c='"${RED}"'; fi; printf %s%03i $c $v)'
+ _STATUS+="\$(v=\$?; if [[ \$v = 0 ]]; then c='${GREEN}'; else c='${RED}'; fi; printf %s%03i \$c \$v)"
_STATUS+="${RESET}${BOLD}]${RESET}"
else
_STATUS='[$?]'