From 8b798f758d0321d0cb44c86c0432d38d90271f44 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 16 Nov 2019 09:21:54 +0000 Subject: [PATCH] Check for existing run-help alias before trying to remove --- zshrc.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc.zsh b/zshrc.zsh index b1a9851..4248820 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -9,7 +9,9 @@ bindkey -v autoload -Uz compinit promptinit run-help compinit promptinit -unalias run-help +case $(type run-help) in + (*alias*) unalias run-help;; +esac alias help=run-help # Persistant rehash to find new programs in the $PATH zstyle ':completion:*' rehash true