all repos — nixfiles @ b53a05c7a0941ce8b7a480d9cbf317578dbac031

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

zsh: fix global compinit setting breaking darwin
Alan Pearce alan@alanpearce.eu
Fri, 08 Nov 2019 23:22:35 +0100
commit

b53a05c7a0941ce8b7a480d9cbf317578dbac031

parent

f082ca8aead014318e2cbda41ba671791a405f0b

2 files changed, 12 insertions(+), 10 deletions(-)

jump to
M system/settings/programs/shell.nixsystem/settings/programs/shell.nix
@@ -3,7 +3,6 @@ { programs.zsh = {
     enable = true;
     promptInit = "";
-    enableGlobalCompInit = false;
   };
   programs.bash.enableCompletion = true;
 }
M user/settings/nixos.nixuser/settings/nixos.nix
@@ -12,14 +12,17 @@ };     })
   ];
 
-  programs.zsh.shellAliases = {
-    nor = "nixos-rebuild";
-    snor = "sudo nixos-rebuild";
-    nors = "nixos-rebuild switch";
-    snors = "sudo nixos-rebuild switch";
-    norb = "nixos-rebuild boot";
-    snorb = "sudo nixos-rebuild boot";
-    norr = "nixos-rebuild switch --rollback";
-    snorr = "sudo nixos-rebuild switch --rollback";
+  programs.zsh = {
+    enableGlobalCompInit = false;
+    shellAliases = {
+      nor = "nixos-rebuild";
+      snor = "sudo nixos-rebuild";
+      nors = "nixos-rebuild switch";
+      snors = "sudo nixos-rebuild switch";
+      norb = "nixos-rebuild boot";
+      snorb = "sudo nixos-rebuild boot";
+      norr = "nixos-rebuild switch --rollback";
+      snorr = "sudo nixos-rebuild switch --rollback";
+    };
   };
 }