zsh: don't add ~/.local/bin to path on darwin
Alan Pearce alan@alanpearce.eu
Sun, 09 Apr 2023 13:10:08 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M user/settings/zsh.nix → user/settings/zsh.nix
@@ -202,7 +202,8 @@ ngc = "nix-collect-garbage --delete-older-than 30d"; 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)