shell/zsh: change prompt to lambda

This commit is contained in:
Henrik Lissner 2018-05-24 21:22:56 +02:00
parent b89a56f310
commit 0eeb963fde
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -44,7 +44,7 @@ prompt_init() {
zle-keymap-select() {
case $KEYMAP in
vicmd) PROMPT_SYMBOL="%F{magenta}« " ;;
main|viins) PROMPT_SYMBOL="%(?.%F{green}.%F{red})── " ;;
main|viins) PROMPT_SYMBOL="%(?.%F{green}.%F{red})λ " ;;
esac
zle reset-prompt
zle -R
@ -67,7 +67,7 @@ prompt_init() {
fi
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 "$@"