dotfiles/zsh/funcs/man
2024-04-17 08:48:09 -04:00

5 lines
110 B
Bash

man () {
PROGRAM="${@[-1]}"
SECTION="${@[-2]}"
page -W "man://${PROGRAM}${SECTION:+($SECTION)}"
}