summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-09 13:10:08 +0200
committerAlan Pearce2023-04-09 13:10:08 +0200
commit65d5b658770a055291abe509f2094f271fd4bbe2 (patch)
tree1de32aba034918d38bd73972b83c2d481696174e
parent264ad042866715855412ab786c1ad5edbc298565 (diff)
downloadnixfiles-65d5b658770a055291abe509f2094f271fd4bbe2.tar.lz
nixfiles-65d5b658770a055291abe509f2094f271fd4bbe2.tar.zst
nixfiles-65d5b658770a055291abe509f2094f271fd4bbe2.zip
zsh: don't add ~/.local/bin to path on darwin
-rw-r--r--user/settings/zsh.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 2e0d9290..490fd92f 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -202,7 +202,8 @@ in
       sngc = "sudo nix-collect-garbage --delete-older-than 30d";
     };
 
-    envExtra = ''
+    # Put this in /etc/paths.d/ on Darwin instead
+    envExtra = lib.optionalString (!stdenv.isDarwin) ''
       if [[ ''${path[(I)$HOME/.local/bin ]} ]]
       then
         path=($HOME/.local/bin $path)