Skip to content

Commit

Permalink
work around a zsh bug(?)
Browse files Browse the repository at this point in the history
see hchbaw/opp.zsh#1 for more details
  • Loading branch information
doy committed Nov 4, 2013
1 parent 6318219 commit ceeb3c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,16 @@ 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
RPS1="%{$fg_bold[yellow]%}[${KEYMAP/vicmd/NORMAL}]%{$reset_color%}"
fi
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
# }}}
# set the correct perl {{{
Expand Down

0 comments on commit ceeb3c9

Please sign in to comment.