Speed up zsh by removing redundant compinit call

This commit is contained in:
Jeremy Dormitzer 2023-05-09 08:26:04 -04:00
parent 19472e46e2
commit 235a6882ce

View File

@ -3,6 +3,11 @@
typeset -U path
path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin /opt/homebrew/opt/ruby/bin /opt/local/bin /usr/local/opt/make/libexec/gnubin /opt/homebrew/opt/coreutils/libexec/gnubin $path)
# zsh-completions homebrew package
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
fi
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
@ -119,12 +124,6 @@ if type gman &>/dev/null; then
alias man="gman"
fi
# zsh-completions homebrew package
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
# kubectl completion
[[ $commands[kubectl] ]] && source <(kubectl completion zsh)