aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--prompt_adam3_setup3
1 files changed, 3 insertions, 0 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup
index 2fb0974..60a9dc6 100644
--- a/prompt_adam3_setup
+++ b/prompt_adam3_setup
@@ -84,6 +84,9 @@ prompt_adam3_precmd () {
PS1+="${vcs_info_msg_0_}%{${reset_color}%}"
+ # Display exit-code
+ PS1+="%(?..[%{$fg[red]%}%?%{$reset_color%}] )"
+
PS1+="${promptchar} %b%f%k"
PS2="${PS1}%_> %b%f%k"
PS3="${PS1}?# %b%f%k"