aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 9a96ed33..b9a834b8 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -243,6 +243,10 @@ prompt() {
printf '{%d}' "$jobc"
fi
;;
+ # Print error
+ *)
+ printf '%s: Unknown command %s\n' "$FUNCNAME" "$1" >&2
+ return 1
esac
}