1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

fix: slow zsh startup because of double compinit

This commit is contained in:
oddlama 2024-06-03 22:45:11 +02:00
parent 68b12b865c
commit 4a4743329b
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -24,6 +24,13 @@
# Required even when using home-manager's zsh module since the /etc/profile load order
# is partly controlled by this. See nix-community/home-manager#3681.
# TODO remove once we have nushell
programs.zsh.enable = true;
# FIXME: remove once we have nushell
programs.zsh = {
enable = true;
# Disable the completion in the global module because it would call compinit
# but the home manager config also calls compinit. This causes the cache to be invalidated
# because the fpath changes in-between, causing constant re-evaluation and thus startup
# times of 1-2 seconds. Disable the completion here and only keep the home-manager one to fix it.
enableCompletion = false;
};
}