From 095f44796bae5748622be84e6f5063eb0264817f Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Thu, 29 Apr 2021 17:37:09 -0500 Subject: [PATCH] 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: https://github.com/zsh-users/zsh/blob/ccc9cff9e244725ed604fd1ac20e4958339e3885/Functions/Misc/run-help#L3-L8 --- init.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.zsh b/init.zsh index ebae912..41737fd 100644 --- a/init.zsh +++ b/init.zsh @@ -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"