aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-09-22 19:30:59 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-09-22 19:30:59 +0300
commitb31d0ff3950c091cb5f0aa34abc664a4790affc8 (patch)
tree97dddf2d77b19c0d8bdd0f29ad9458cdb926d33e /powerlevel9k.zsh-theme
parent2e7d0f14d2a355427609e93c32fd9f8b219db7f3 (diff)
Made VI-Mode plugin working again.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme8
1 files changed, 8 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 19a8bbb3..479c6880 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -880,6 +880,11 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
fi
}
+function zle-line-init zle-keymap-select {
+ powerlevel9k_prepare_prompts
+ zle reset-prompt
+}
+
powerlevel9k_init() {
# Display a warning if the terminal does not support 256 colors
local term_colors
@@ -902,6 +907,9 @@ powerlevel9k_init() {
# prepare prompts
add-zsh-hook precmd powerlevel9k_prepare_prompts
+
+ zle -N zle-line-init
+ zle -N zle-keymap-select
}
powerlevel9k_init "$@"