diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-08 10:07:03 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-08 10:07:03 -0400 |
commit | 173c3cf1859b2adcae5abd534f31bdd8018d2a7e (patch) | |
tree | 7cc29a9f00c321f4660369dc691a77a57d9d7eb6 | |
parent | ccefe3e3923a28887b96ba564cd6a4d3963f4b95 (diff) |
fix quoting in _STATUS in .config/bash/rc.sh
-rw-r--r-- | .config/bash/rc.sh | 2 |
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='[$?]' |