all repos — nixfiles @ b9ad3d7604a9b7517483c47a6c991dde6d1156fb

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

shell: disable compinit in one place across platforms

Alan Pearce
commit

b9ad3d7604a9b7517483c47a6c991dde6d1156fb

parent

1ce8a9560ed3d061b3106feea786d0132988e47c

2 files changed, 5 insertions(+), 4 deletions(-)

jump to
M system/settings/darwin.nixsystem/settings/darwin.nix
@@ -28,8 +28,6 @@ };
programs.zsh = { enable = true; - enableCompletion = false; # Causes >2s startup time, overlaps home-manager config - enableBashCompletion = true; loginShellInit = '' source /System/Library/Templates/Data/private/etc/zprofile '';
M system/settings/programs/shell.nixsystem/settings/programs/shell.nix
@@ -8,9 +8,12 @@ enable = true;
promptInit = ""; } // ( + # Either of these will call `compinit`, causing >2s startup time + # Do it in home-manager instead if pkgs.stdenv.isDarwin - then { } - else { + then { + enableCompletion = false; + } else { enableGlobalCompInit = false; } );