summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-11-04 00:09:20 -0500
committerJesse Luehrs <doy@tozt.net>2013-11-04 00:09:57 -0500
commitceeb3c95952afb478ce2777bc84e01368ef7e7b5 (patch)
treeb295f41c464bb5d5f9eac1ff46822f76dc15b821 /zshrc
parent6318219aef8d5ada1d567363f2ae86dd95b1d353 (diff)
downloadconf-ceeb3c95952afb478ce2777bc84e01368ef7e7b5.tar.gz
conf-ceeb3c95952afb478ce2777bc84e01368ef7e7b5.zip
work around a zsh bug(?)
see https://github.com/hchbaw/opp.zsh/issues/1 for more details
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc5
1 files 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 {{{