1
0
Fork 0
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:
Nikita Uvarov 2017-10-30 13:45:06 +01:00
parent 268d027770
commit 1213578eb7
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -236,6 +236,7 @@ in
};
home.file."${relToDotDir ".zshenv"}".text = ''
typeset -U fpath
${envVarsStr}
'';