mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
zsh: turn fpath into a set
Forcing fpath to contain unique values increases startup speed by eliminating extra work of processing duplicated folders. In addition, it increases startup time when zsh is enabled in both system and home configuration due to having the same fpath value between different compinit calls. Fixes https://github.com/rycee/home-manager/issues/108.
This commit is contained in:
parent
268d027770
commit
1213578eb7
1 changed files with 1 additions and 0 deletions
|
@ -236,6 +236,7 @@ in
|
|||
};
|
||||
|
||||
home.file."${relToDotDir ".zshenv"}".text = ''
|
||||
typeset -U fpath
|
||||
${envVarsStr}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue