From 1213578eb7f7a4031f82046cb3a1c84fa18fe5a0 Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Mon, 30 Oct 2017 13:45:06 +0100 Subject: [PATCH] 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. --- modules/programs/zsh.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index d9ee7ab18..d945012c0 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -236,6 +236,7 @@ in }; home.file."${relToDotDir ".zshenv"}".text = '' + typeset -U fpath ${envVarsStr} '';