forked from mirrors_public/oddlama_nix-config
fix: slow zsh startup because of double compinit
This commit is contained in:
parent
68b12b865c
commit
4a4743329b
1 changed files with 9 additions and 2 deletions
|
@ -24,6 +24,13 @@
|
||||||
|
|
||||||
# Required even when using home-manager's zsh module since the /etc/profile load order
|
# 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.
|
# is partly controlled by this. See nix-community/home-manager#3681.
|
||||||
# TODO remove once we have nushell
|
# FIXME: remove once we have nushell
|
||||||
programs.zsh.enable = true;
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue