mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-01-19 04:47:40 +02:00
Issue #131: This fixes history-substring-search, home and end keys.
This commit is contained in:
parent
b2e6beec51
commit
eef5286005
@ -922,12 +922,26 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
|
|||||||
|
|
||||||
function zle-line-init {
|
function zle-line-init {
|
||||||
powerlevel9k_prepare_prompts
|
powerlevel9k_prepare_prompts
|
||||||
|
if (( ${+terminfo[smkx]} )); then
|
||||||
|
printf '%s' ${terminfo[smkx]}
|
||||||
|
fi
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
|
zle -R
|
||||||
|
}
|
||||||
|
|
||||||
|
function zle-line-finish {
|
||||||
|
powerlevel9k_prepare_prompts
|
||||||
|
if (( ${+terminfo[rmkx]} )); then
|
||||||
|
printf '%s' ${terminfo[rmkx]}
|
||||||
|
fi
|
||||||
|
zle reset-prompt
|
||||||
|
zle -R
|
||||||
}
|
}
|
||||||
|
|
||||||
function zle-keymap-select {
|
function zle-keymap-select {
|
||||||
powerlevel9k_prepare_prompts
|
powerlevel9k_prepare_prompts
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
|
zle -R
|
||||||
}
|
}
|
||||||
|
|
||||||
powerlevel9k_init() {
|
powerlevel9k_init() {
|
||||||
@ -954,6 +968,7 @@ powerlevel9k_init() {
|
|||||||
add-zsh-hook precmd powerlevel9k_prepare_prompts
|
add-zsh-hook precmd powerlevel9k_prepare_prompts
|
||||||
|
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
|
zle -N zle-line-finish
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user