1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 19:48:00 +00:00

base: Check for 'run-help' in aliases hash before evicting

Add guard to check for presence of 'run-help' in `aliases` hash before evicting.
In some systems (like Debian) '/etc/zshrc' might have already done it.
This commit is contained in:
Indrajit Raychaudhuri 2021-05-01 03:05:19 -05:00 committed by GitHub
parent 63bc5061a7
commit 8a967fc108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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