diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-11-12 00:00:19 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-11-12 00:45:23 +0300 |
commit | eef5286005422528cb2a941876ff35bbfe5c07da (patch) | |
tree | 2dcb7ad58a146c675a6e8e012d5ae3efdf7ff4f3 /powerlevel9k.zsh-theme | |
parent | b2e6beec514c6e186dd825a704dfdc399b0e60e4 (diff) |
Issue #131: This fixes history-substring-search, home and end keys.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index a9ce64b1..0d4b3e7c 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -922,12 +922,26 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')" function zle-line-init { powerlevel9k_prepare_prompts + if (( ${+terminfo[smkx]} )); then + printf '%s' ${terminfo[smkx]} + fi + 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 { powerlevel9k_prepare_prompts zle reset-prompt + zle -R } powerlevel9k_init() { @@ -954,6 +968,7 @@ powerlevel9k_init() { add-zsh-hook precmd powerlevel9k_prepare_prompts zle -N zle-line-init + zle -N zle-line-finish zle -N zle-keymap-select } |