all repos — nixfiles @ 6f5a21a9e7ff68675b032ea10a7966623f8660f2

System and user configuration, managed by nix and home-manager

zsh: improve startup time by managing completion manually
Alan Pearce alan@alanpearce.eu
Sun, 22 Nov 2020 20:56:24 +0100
commit

6f5a21a9e7ff68675b032ea10a7966623f8660f2

parent

c5b94cc55f2fc7916ca59017ce380786dd9fd450

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -42,7 +42,7 @@ programs.zsh = {     enable = true;
 
     enableAutosuggestions = true;
-    enableCompletion = true;
+    enableCompletion = false;
     defaultKeymap = "emacs";
 
     dotDir = ".config/zsh";
@@ -254,6 +254,8 @@ fi     '';
 
     initExtra = ''
+      autoload -Uz compinit
+      compinit -C
       typeset -T GHQ_ROOT ghq_root
       export GHQ_ROOT="$HOME/projects:$HOME/go/src:$HOME/quicklisp/local-projects"