From 235a6882cec0243bf26d2013ab34879cd2a49fbf Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 9 May 2023 08:26:04 -0400 Subject: [PATCH] Speed up zsh by removing redundant compinit call --- zsh/.zshrc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 0372be2..ad75547 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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)