Skip to content

Commit

Permalink
zsh: use sessionPath
Browse files Browse the repository at this point in the history
resolves #22
  • Loading branch information
srid committed Sep 25, 2024
1 parent 5aca02a commit d9e4766
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions home/zsh.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down

0 comments on commit d9e4766

Please sign in to comment.