Skip to content

Instantly share code, notes, and snippets.

@Osse
Created February 25, 2015 19:48
Show Gist options
  • Save Osse/6cd87919d3ccd231ed64 to your computer and use it in GitHub Desktop.
Save Osse/6cd87919d3ccd231ed64 to your computer and use it in GitHub Desktop.
function zle-line-init zle-keymap-select {
RPS1="%B${${KEYMAP/vicmd/n}/(main|viins)/i}%b"
RPS2=$RPS1
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment