summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
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 {{{