man/man.plugin.zsh
2018-06-25 22:08:43 +02:00

12 lines
237 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

_man() {
[[ -z $BUFFER ]] && zle up-history
if [[ $BUFFER == man\ * ]]; then
LBUFFER="${LBUFFER#man }"
else
LBUFFER="man $LBUFFER"
fi
}
zle -N _man
# Defined shortcut keys: [F1][F1]
bindkey "OPOP" _man