From aa6a30b0f595d3c813090112bc9646d1f049c7f3 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 3 Jun 2024 22:31:51 +0200 Subject: [PATCH] fix: zsh startup time --- config/basic/home-manager.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/basic/home-manager.nix b/config/basic/home-manager.nix index 6bffaec..6ab0f42 100644 --- a/config/basic/home-manager.nix +++ b/config/basic/home-manager.nix @@ -29,5 +29,10 @@ }; # HM zsh needs this or else the startup order is fucked # and env variables will be loaded incorrectly - programs.zsh.enable = true; + programs.zsh = { + enable = true; + # prevent zsh from calling compinit twice with different fpaths + # This overrides compdump each time, in turn making startup very slow + enableCompletion = false; + }; }