From 65d5b658770a055291abe509f2094f271fd4bbe2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 9 Apr 2023 13:10:08 +0200 Subject: zsh: don't add ~/.local/bin to path on darwin --- user/settings/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user/settings') 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) -- cgit 1.4.1