1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 09:28:32 +02: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}
'';