From f032757efd7be737841d71bc86b2f6da43b5a5ad Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 23 May 2017 17:02:33 +0200 Subject: adding status-code --- prompt_adam3_setup | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prompt_adam3_setup') 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" -- cgit v1.2.3