shell/zsh: change prompt to lambda
This commit is contained in:
parent
b89a56f310
commit
0eeb963fde
|
@ -44,7 +44,7 @@ prompt_init() {
|
||||||
zle-keymap-select() {
|
zle-keymap-select() {
|
||||||
case $KEYMAP in
|
case $KEYMAP in
|
||||||
vicmd) PROMPT_SYMBOL="%F{magenta}« " ;;
|
vicmd) PROMPT_SYMBOL="%F{magenta}« " ;;
|
||||||
main|viins) PROMPT_SYMBOL="%(?.%F{green}.%F{red})── " ;;
|
main|viins) PROMPT_SYMBOL="%(?.%F{green}.%F{red})λ " ;;
|
||||||
esac
|
esac
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
zle -R
|
zle -R
|
||||||
|
@ -67,7 +67,7 @@ prompt_init() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RPROMPT='%F{blue}%~%F{magenta}${vcs_info_msg_0_}$(prompt_git_dirty)%f'
|
RPROMPT='%F{blue}%~%F{magenta}${vcs_info_msg_0_}$(prompt_git_dirty)%f'
|
||||||
PROMPT='%F{blue}${prompt_username}%f${PROMPT_SYMBOL:-$ }- '
|
PROMPT='%F{blue}${prompt_username}%f${PROMPT_SYMBOL:-$ }'
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_init "$@"
|
prompt_init "$@"
|
||||||
|
|
Loading…
Reference in a new issue