diff options
author | Dennis Eriksen <dennis@eriksen.im> | 2017-05-23 17:02:33 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis@eriksen.im> | 2017-05-23 17:02:33 +0200 |
commit | f032757efd7be737841d71bc86b2f6da43b5a5ad (patch) | |
tree | 8c5d87896b5e6ee22a40c6c7dad94409837fc474 /prompt_adam3_setup | |
parent | just reworking the code (diff) | |
download | adam3-f032757efd7be737841d71bc86b2f6da43b5a5ad.tar.gz |
adding status-code
Diffstat (limited to 'prompt_adam3_setup')
-rw-r--r-- | prompt_adam3_setup | 3 |
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" |