]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: chain run-help call when using sudo
authorSamir Benmendil <me@rmz.io>
Thu, 27 Dec 2018 16:02:53 +0000 (16:02 +0000)
committerSamir Benmendil <me@rmz.io>
Thu, 27 Dec 2018 16:02:53 +0000 (16:02 +0000)
This overrides upstreams run-help-sudo.
Patch has been submitted -> delete this when merged.

zsh/functions/run-help-sudo [new file with mode: 0644]

diff --git a/zsh/functions/run-help-sudo b/zsh/functions/run-help-sudo
new file mode 100644 (file)
index 0000000..8425668
--- /dev/null
@@ -0,0 +1,7 @@
+if [ $# -eq 0 ]; then
+    man sudo
+else
+    run-help $1
+fi
+
+