13 lines
237 B
Bash
13 lines
237 B
Bash
|
_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
|