From 66742c60451a1741688245d682471611f33372a5 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 31 Dec 2007 22:13:46 +0000 Subject: 24332, 24333: Improvements to run-help suggested by J.Sommer. --- Functions/Misc/run-help-git | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Functions/Misc/run-help-git (limited to 'Functions/Misc/run-help-git') 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 -- cgit 1.4.1