From: Samir Benmendil Date: Wed, 12 May 2021 19:03:04 +0000 (+0100) Subject: zsh: add run-help-aur X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/8f9fd4a20e702a3c74ffaa00de27c00fae917f70?ds=sidebyside zsh: add run-help-aur --- diff --git a/zsh/functions/run-help-aur b/zsh/functions/run-help-aur new file mode 100644 index 0000000..8b46dcd --- /dev/null +++ b/zsh/functions/run-help-aur @@ -0,0 +1,25 @@ +if [ $# -eq 0 ]; then + man aur + return +fi + +while [[ $# != 0 && $1 == -* ]]; do + shift +done + +case $1 in + (b*) man aur-build ;; + (d*) man aur-depends ;; + (f*) man aur-fetch ;; + (g*) man aur-graph ;; + (p*) man aur-pkglist ;; + (repo-*) man aur-repo-filter ;; + (repo) man aur-repo ;; + (se*) man aur-search ;; + (sr*) man aur-srcver ;; + (sy*) man aur-sync ;; + (v*) man aur-vercmp ;; + (*) man aur ;; +esac + +return $?