Skip to content

Instantly share code, notes, and snippets.

@jchnkl
Created August 15, 2012 20:15
Show Gist options
  • Select an option

  • Save jchnkl/3363220 to your computer and use it in GitHub Desktop.

Select an option

Save jchnkl/3363220 to your computer and use it in GitHub Desktop.
function show-manpage () {
autoload -U split-shell-arguments
split-shell-arguments
zle push-line
local BUFFER=" man ${reply[$REPLY]}"
zle accept-line
}
zle -N show-manpage
bindkey -a 'K' show-manpage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment