zsh: use colored lambda for prompt symbol

This commit is contained in:
Henrik Lissner 2016-06-06 19:57:31 -04:00
parent 986a99990e
commit d3d6bc2990

View file

@ -91,11 +91,11 @@ prompt_init() {
## Vim cursors ## Vim cursors
if [[ -z "$SSH_CONNECTION" ]] if [[ -z "$SSH_CONNECTION" ]]
then then
N_MODE="%F{blue}## " N_MODE="%F{green}## "
I_MODE="$ " I_MODE="%(?.%F{blue}.%F{red})λ "
else else
N_MODE="%F{blue}### " N_MODE="%F{red}### "
I_MODE="& " I_MODE="%(?.%F{magenta}.%F{red})λ "
fi fi
RPROMPT='%F{cyan}${vcs_info_msg_0_}$(prompt_git_dirty)' # Branch + dirty indicator RPROMPT='%F{cyan}${vcs_info_msg_0_}$(prompt_git_dirty)' # Branch + dirty indicator
@ -103,8 +103,8 @@ prompt_init() {
RPROMPT+='%f' # end RPROMPT+='%f' # end
PROMPT='$prompt_username' # username PROMPT='$prompt_username' # username
PROMPT+='%F{blue}%~ %f' # path PROMPT+='%F{cyan}%~ %f' # path
PROMPT+='%(?.%F{green}.%F{red})${PROMPT_SYMBOL:-$ }' # Prompt (red if $? == 0) PROMPT+='${PROMPT_SYMBOL:-$ }' # Prompt (red if $? == 0)
PROMPT+='%f' #end PROMPT+='%f' #end
} }