From ceeb3c95952afb478ce2777bc84e01368ef7e7b5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 4 Nov 2013 00:09:20 -0500 Subject: work around a zsh bug(?) see https://github.com/hchbaw/opp.zsh/issues/1 for more details --- zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 23eb8eb..8447a13 100644 --- a/zshrc +++ b/zshrc @@ -87,7 +87,9 @@ function shell_prompt_precmd () { RPS1='' } precmd_functions+=(shell_prompt_precmd) -function zle-line-init zle-keymap-select () { +function zle-keymap-select () { + setopt localoptions no_ksharrays + { [[ "${@[2]-main}" == opp ]] } && return if [[ "x$KEYMAP" == 'xmain' ]]; then RPS1='' else @@ -95,7 +97,6 @@ function zle-line-init zle-keymap-select () { fi zle reset-prompt } -zle -N zle-line-init zle -N zle-keymap-select # }}} # set the correct perl {{{ -- cgit v1.2.3-54-g00ecf