From 686a06e2b657fb95fce823888ab7ce379ce9bbba Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 2 Feb 2022 23:08:56 -0500 Subject: [PATCH] Don't let Debian (& friends) compinit The zshrc file provided by Debian (and related distributions) at /etc/zsh/zshrc runs compinit. This means if we run compinit in our own dotfiles, we will run it twice with minor impact to our startup time. It also means if we are lazy and add a completion path to our user zshrc (instead of user zshenv), compinit will run before we modify fpath causing a complete rebuild and dump of completions since the file count will change with significant impact to our startup time. So let's follow the instructions in the system zshrc file: If you don't want compinit called here, place the line skip_global_compinit=1 in your $ZDOTDIR/.zshenv --- zsh/.zshenv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/.zshenv b/zsh/.zshenv index f327b86..bf1476e 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -32,3 +32,6 @@ fi # EDITOR EDITOR=vim GIT_EDITOR=vim + +# Don't let Debian distributions run compinit +skip_global_compinit=1