about summary refs log tree commit diff
path: root/Functions/Misc/run-help-git
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Misc/run-help-git')
-rw-r--r--Functions/Misc/run-help-git10
1 files changed, 10 insertions, 0 deletions
diff --git a/Functions/Misc/run-help-git b/Functions/Misc/run-help-git
new file mode 100644
index 000000000..51c6e250c
--- /dev/null
+++ b/Functions/Misc/run-help-git
@@ -0,0 +1,10 @@
+#!/bin/zsh
+if [ $# -eq 0 ]; then
+    man git
+else
+    local al
+    if al=$(git config --get "alias.$1"); then
+        1=${al%% *}
+    fi
+    man git-$1
+fi