X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=a68687f6b4543f8be041805de07e0db1ef61ea11;hb=748acc669ba2bef6ffa176c1a317e714dafd1042;hp=03e272d027f5306dff4cc6047507e4badd9bc817;hpb=e07e9a2db035fc8132a6200ab4e8b2dcb81b95c7;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 03e272d..a68687f 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3711,7 +3711,11 @@ show-archive() { #f5# Use \kbd{vim} as your manpage reader vman() { emulate -L zsh - man $* | col -b | view -c 'set ft=man nomod nolist' - + if (( ${#argv} == 0 )); then + printf 'usage: vman \n' + return 1 + fi + man "$@" | col -b | view -c 'set ft=man nomod nolist' - } # function readme() { $PAGER -- (#ia3)readme* }