aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-05-27 17:03:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-05-27 17:03:29 +1200
commit3ba51d668e439adde8ab0eb735d30683dfd12b30 (patch)
tree46947613190238fc75db7ab0a8169e8e60fbc21b /bash/bashrc.d/prompt.bash
parentCorrect comment about unused TTY var (diff)
downloaddotfiles-3ba51d668e439adde8ab0eb735d30683dfd12b30.tar.gz
dotfiles-3ba51d668e439adde8ab0eb735d30683dfd12b30.zip
Be more specific about prompt part appearance
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index ed161306..f1e51d78 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -214,14 +214,14 @@ prompt() {
prompt git || prompt svn || prompt hg
;;
- # Show the return status of the last command in angle brackets
+ # Show return status of previous command in angle brackets, if not zero
ret)
if ((ret > 0)) ; then
printf '<%d>' "$ret"
fi
;;
- # Show the count of background jobs in curly brackets
+ # Show the count of background jobs in curly brackets, if not zero
job)
local -i jobc=0
while read -r _ ; do