diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2007-12-31 22:13:46 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2007-12-31 22:13:46 +0000 |
| commit | 66742c60451a1741688245d682471611f33372a5 (patch) | |
| tree | 32f8baf32cbf505f89ed3d35de02104d7287c547 /Functions/Misc/run-help-git | |
| parent | 24330: add some missing options from xpdf 3.02. (diff) | |
| download | zsh-66742c60451a1741688245d682471611f33372a5.tar zsh-66742c60451a1741688245d682471611f33372a5.tar.gz zsh-66742c60451a1741688245d682471611f33372a5.tar.bz2 zsh-66742c60451a1741688245d682471611f33372a5.tar.lz zsh-66742c60451a1741688245d682471611f33372a5.tar.xz zsh-66742c60451a1741688245d682471611f33372a5.tar.zst zsh-66742c60451a1741688245d682471611f33372a5.zip | |
24332, 24333: Improvements to run-help suggested by J.Sommer.
Diffstat (limited to 'Functions/Misc/run-help-git')
| -rw-r--r-- | Functions/Misc/run-help-git | 10 |
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 |
