diff --git a/man.plugin.zsh b/man.plugin.zsh index 626b312..8a202b4 100644 --- a/man.plugin.zsh +++ b/man.plugin.zsh @@ -1,4 +1,4 @@ -_man() { +man-command-line() { [[ -z $BUFFER ]] && zle up-history if [[ $BUFFER == man\ * ]]; then LBUFFER="${LBUFFER#man }" @@ -6,7 +6,7 @@ _man() { LBUFFER="man $LBUFFER" fi } -zle -N _man +zle -N man-command-line # Defined shortcut keys: [F1][F1] -bindkey "OPOP" _man +bindkey "OPOP" man-command-line