mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
Fix vi mode plugin
This commit is contained in:
parent
afb7387abe
commit
c69d21016c
1 changed files with 7 additions and 0 deletions
|
@ -1522,6 +1522,11 @@ NEWLINE='
|
||||||
[[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
|
[[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zle-keymap-select () {
|
||||||
|
zle reset-prompt
|
||||||
|
zle -R
|
||||||
|
}
|
||||||
|
|
||||||
prompt_powerlevel9k_setup() {
|
prompt_powerlevel9k_setup() {
|
||||||
# The value below was set to better support 32-bit CPUs.
|
# The value below was set to better support 32-bit CPUs.
|
||||||
# It's the maximum _signed_ integer value on 32-bit CPUs.
|
# It's the maximum _signed_ integer value on 32-bit CPUs.
|
||||||
|
@ -1590,6 +1595,8 @@ prompt_powerlevel9k_setup() {
|
||||||
# prepare prompts
|
# prepare prompts
|
||||||
add-zsh-hook precmd powerlevel9k_prepare_prompts
|
add-zsh-hook precmd powerlevel9k_prepare_prompts
|
||||||
add-zsh-hook preexec powerlevel9k_preexec
|
add-zsh-hook preexec powerlevel9k_preexec
|
||||||
|
|
||||||
|
zle -N zle-keymap-select
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_powerlevel9k_teardown() {
|
prompt_powerlevel9k_teardown() {
|
||||||
|
|
Loading…
Reference in a new issue