From 8f9fd4a20e702a3c74ffaa00de27c00fae917f70 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 12 May 2021 20:03:04 +0100 Subject: [PATCH] zsh: add run-help-aur --- zsh/functions/run-help-aur | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 zsh/functions/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 $? -- 2.48.1