From 8a967fc1089ce01bc67c7f2540207891c7974230 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sat, 1 May 2021 03:05:19 -0500 Subject: [PATCH] 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. --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index 41737fd..08bd3ab 100644 --- a/init.zsh +++ b/init.zsh @@ -183,7 +183,7 @@ 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 +(( $+aliases[run-help] )) && unalias run-help && autoload -Uz run-help # Autoload Zsh functions. zstyle -a ':prezto:load' zfunction 'zfunctions'