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
This commit is contained in:
Andrew Tomaka 2022-02-02 23:08:56 -05:00
parent 2ba9571efa
commit 686a06e2b6
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -32,3 +32,6 @@ fi
# EDITOR
EDITOR=vim
GIT_EDITOR=vim
# Don't let Debian distributions run compinit
skip_global_compinit=1