From d9e47665619c6d3a232490f45f73e2706ed85dad Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 25 Sep 2024 16:31:22 -0400 Subject: [PATCH] zsh: use sessionPath resolves #22 --- home/zsh.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/home/zsh.nix b/home/zsh.nix index ac5f453..beac06a 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -1,6 +1,11 @@ -{ lib, pkgs, ... }: +{ pkgs, ... }: { + home.sessionPath = [ + "/etc/profiles/per-user/$USER/bin" + "/nix/var/nix/profiles/system/sw/bin" + "/usr/local/bin" + ]; programs.zsh = { enable = true; autosuggestion.enable = true; @@ -14,8 +19,6 @@ ]; envExtra = '' - export PATH=/etc/profiles/per-user/$USER/bin:/nix/var/nix/profiles/system/sw/bin:/usr/local/bin:$PATH - # Because, adding it in .ssh/config is not enough. # cf. https://developer.1password.com/docs/ssh/get-started#step-4-configure-your-ssh-or-git-client export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock