diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-26 15:21:38 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-26 15:21:38 +1200 |
commit | be70816eefab2e1559a4d15f2076b3b153e1fe1a (patch) | |
tree | 1523cda5d5f54c043ff0c77b5522a795c7a60f6b /bash | |
parent | Rearrange prompt to put last return status last (diff) | |
download | dotfiles-be70816eefab2e1559a4d15f2076b3b153e1fe1a.tar.gz dotfiles-be70816eefab2e1559a4d15f2076b3b153e1fe1a.zip |
Unset return value after it's used
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 1 |
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 |