Display command return code in the half-life theme
This commit is contained in:
parent
1b7fc2f3ac
commit
8dcd37c724
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user