From a021bc47207d3ce3d8307e2131e8920ef4dcecd2 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 3 Aug 2024 15:52:25 +0200 Subject: common/zsh: speed up compinit --- common/commandline/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/commandline') diff --git a/common/commandline/zsh.nix b/common/commandline/zsh.nix index 17504e9..919edb3 100644 --- a/common/commandline/zsh.nix +++ b/common/commandline/zsh.nix @@ -14,6 +14,11 @@ in enable = true; interactiveShellInit = '' + # Use cache file as is, to speed-up start time + # This does mean we have to run once in a while: + # compinit -d .config/zsh/.zcompdump + zstyle ':grml:completion:compinit' arguments -C + source "${pkgs.grml-zsh-config}/etc/zsh/zshrc" is4 && xsource "${pkgs.grml-zsh-config}/etc/zsh/keephack" -- cgit v1.2.3