9 lines
388 B
Bash
Executable File
9 lines
388 B
Bash
Executable File
#!/bin/sh
|
|
case $1 in
|
|
(vlc) unbuffer vlc --full-help "${@:2}" | ${PAGER:-less} --quit-if-one-screen;;
|
|
(zmv) # https://unix.stackexchange.com/questions/19290/zmv-for-zsh-dry-runs-and-man-pages
|
|
# need to install zsh-doc for info
|
|
info --index-search=zmv zsh || LESS="$LESS +/^ *zmv *\\[" man zshcontrib;;
|
|
(*) man "$@" || "$@" --help | ${PAGER:-less} --quit-if-one-screen;;
|
|
esac
|