diff options
author | Martin Vaeth <vaeth@mathematik.uni-wuerzburg.de> | 2013-11-12 17:41:40 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-11-12 20:57:45 +0000 |
commit | 0640886d99a48d50fdf3b3e33b5a62c431454dd4 (patch) | |
tree | 04677a7bda7adfc3c9b298f1247c7a6ed755cb49 /Completion/Zsh/Command | |
parent | 2fc2bb7c17aeb7514e5d42e46bb08304480bf125 (diff) | |
download | zsh-0640886d99a48d50fdf3b3e33b5a62c431454dd4.tar.gz zsh-0640886d99a48d50fdf3b3e33b5a62c431454dd4.tar.xz zsh-0640886d99a48d50fdf3b3e33b5a62c431454dd4.zip |
31959 (plus tweak to .gitignore): make help files during installation
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r-- | Completion/Zsh/Command/_run-help | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_run-help b/Completion/Zsh/Command/_run-help new file mode 100644 index 000000000..b579d9711 --- /dev/null +++ b/Completion/Zsh/Command/_run-help @@ -0,0 +1,7 @@ +#compdef run-help +local d expl +local HELPDIR=${HELPDIR:-/usr/share/zsh/$ZSH_VERSION/help} +[[ -d $HELPDIR ]] && { + d=($HELPDIR/*(:t)) + (($#d)) && _wanted commands expl 'command' compadd -a d +} || _man |