Display command return code in the half-life theme

This commit is contained in:
Ruben Sainiuc 2016-09-23 08:41:29 +03:00
parent 1b7fc2f3ac
commit 8dcd37c724

View File

@ -94,3 +94,6 @@ function steeef_precmd {
add-zsh-hook precmd steeef_precmd add-zsh-hook precmd steeef_precmd
PROMPT=$'%{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$(ruby_prompt_info " with%{$fg[red]%} " v g "%{$reset_color%}")$vcs_info_msg_0_%{$orange%} λ%{$reset_color%} ' PROMPT=$'%{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$(ruby_prompt_info " with%{$fg[red]%} " v g "%{$reset_color%}")$vcs_info_msg_0_%{$orange%} λ%{$reset_color%} '
local return_code="%(?..%{$fg_bold[red]%} %? Λ%{$reset_color%})"
RPS1="${return_code}"