mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
zsh: simplify RPROMPT return code
This commit is contained in:
parent
01abda43c3
commit
944d64a5e6
@ -11,5 +11,4 @@ local user_color='green'; [ $UID -eq 0 ] && user_color='red'
|
|||||||
PROMPT="%n@%m %F{$user_color}\$(_fishy_collapsed_wd)%f%(!.#.>) "
|
PROMPT="%n@%m %F{$user_color}\$(_fishy_collapsed_wd)%f%(!.#.>) "
|
||||||
PROMPT2='%F{red}\ %f'
|
PROMPT2='%F{red}\ %f'
|
||||||
|
|
||||||
local return_status="%F{red}%(?..%?)%f"
|
RPROMPT='%F{red}%(?.. %?)%f'
|
||||||
RPROMPT='${return_status}%{$reset_color%}'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user