Skip to content

Instantly share code, notes, and snippets.

View jonlorusso's full-sized avatar
💭
Remotely Remoting

Jon Lorusso jonlorusso

💭
Remotely Remoting
View GitHub Profile
@jonlorusso
jonlorusso / gist:8920183
Created February 10, 2014 17:14
zsh vim mode
function zle-line-init zle-keymap-select {
RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
RPS2=$RPS1
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select