base: Allow loading more specific 'run-help' function

Allow loading more specific 'run-help' function from $fpath. This
allows automatically looking up specific sub-command helper if
available instead of the static default ('man').

See: ccc9cff9e2/Functions/Misc/run-help (L3-L8)
This commit is contained in:
Indrajit Raychaudhuri 2021-04-29 17:37:09 -05:00 committed by Indrajit Raychaudhuri
parent 4de0377106
commit 095f44796b
1 changed files with 3 additions and 0 deletions

View File

@ -182,6 +182,9 @@ zstyle -a ':prezto:load' zmodule 'zmodules'
for zmodule ("$zmodules[@]") zmodload "zsh/${(z)zmodule}"
unset zmodule{s,}
# Load more specific 'run-help' function from $fpath.
unalias run-help && autoload -Uz run-help
# Autoload Zsh functions.
zstyle -a ':prezto:load' zfunction 'zfunctions'
for zfunction ("$zfunctions[@]") autoload -Uz "$zfunction"