aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-26 15:21:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-26 15:21:38 +1200
commitbe70816eefab2e1559a4d15f2076b3b153e1fe1a (patch)
tree1523cda5d5f54c043ff0c77b5522a795c7a60f6b /bash
parentRearrange prompt to put last return status last (diff)
downloaddotfiles-be70816eefab2e1559a4d15f2076b3b153e1fe1a.tar.gz
dotfiles-be70816eefab2e1559a4d15f2076b3b153e1fe1a.zip
Unset return value after it's used
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index a3baaa3b..978472ba 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -153,6 +153,7 @@ prompt() {
if ((ret > 0)); then
printf '<%d>' "$ret"
fi
+ unset ret
;;
# Show the count of background jobs in curly brackets