shell/zsh: change prompt to lambda
This commit is contained in:
parent
b89a56f310
commit
0eeb963fde
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue