aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-02-27 11:07:24 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-02-27 11:07:24 +1300
commit4acf2a4583d401a6a95f00ffe83e1a7d319e43fc (patch)
tree495536ac6fa8587a5630d21666f92ad1e59c441c /bash/bashrc.d/prompt.bash
parentAdd igex(1) (diff)
downloaddotfiles-4acf2a4583d401a6a95f00ffe83e1a7d319e43fc.tar.gz
dotfiles-4acf2a4583d401a6a95f00ffe83e1a7d319e43fc.zip
Unsigned integers for printf
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index e437b9a5..307c577b 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -243,7 +243,7 @@ prompt() {
# Show return status of previous command in angle brackets, if not zero
ret)
if ((PROMPT_RETURN > 0)) ; then
- printf '<%d>' "$PROMPT_RETURN"
+ printf '<%u>' "$PROMPT_RETURN"
fi
;;