Check for existing run-help alias before trying to remove

This commit is contained in:
Jonny Barnes 2019-11-16 09:21:54 +00:00
parent 4d77b4dbc9
commit 8b798f758d

View file

@ -9,7 +9,9 @@ bindkey -v
autoload -Uz compinit promptinit run-help autoload -Uz compinit promptinit run-help
compinit compinit
promptinit promptinit
unalias run-help case $(type run-help) in
(*alias*) unalias run-help;;
esac
alias help=run-help alias help=run-help
# Persistant rehash to find new programs in the $PATH # Persistant rehash to find new programs in the $PATH
zstyle ':completion:*' rehash true zstyle ':completion:*' rehash true