From 0f9032753a26203143e59b59095adf15105cc6de Mon Sep 17 00:00:00 2001 From: Martin Vaeth Date: Tue, 12 Nov 2013 17:41:40 +0000 Subject: 31959 (plus tweak to .gitignore): make help files during installation --- Completion/Zsh/Command/_run-help | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Completion/Zsh/Command/_run-help (limited to 'Completion/Zsh') 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 -- cgit 1.4.1