aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc.d/prompt.bash1
-rw-r--r--ksh/kshrc.d/prompt.ksh1
-rw-r--r--zsh/zshrc.d/prompt.zsh1
3 files changed, 3 insertions, 0 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index d923ef20..aa96cdda 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -215,6 +215,7 @@ prompt() {
# Show return status of previous command in angle brackets, if not zero
ret)
+ # shellcheck disable=SC2154
((ret)) && printf '<%u>' "$ret"
;;
diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh
index 4a58f46d..063f5210 100644
--- a/ksh/kshrc.d/prompt.ksh
+++ b/ksh/kshrc.d/prompt.ksh
@@ -186,6 +186,7 @@ function prompt {
# Show return status of previous command in angle brackets, if not zero
ret)
+ # shellcheck disable=SC2154
((ret)) && printf '<%u>' "$ret"
;;
diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh
index 27db61cb..898031ea 100644
--- a/zsh/zshrc.d/prompt.zsh
+++ b/zsh/zshrc.d/prompt.zsh
@@ -178,6 +178,7 @@ prompt() {
# Show return status of previous command in angle brackets, if not zero
ret)
+ # shellcheck disable=SC2154
((ret)) && printf '<%u>' "$ret"
;;