zsh: use colored lambda for prompt symbol
This commit is contained in:
parent
986a99990e
commit
d3d6bc2990
12
zsh/prompt
12
zsh/prompt
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue