macs: only source brew if exists

This commit is contained in:
2026-03-15 16:58:39 +00:00
parent ad60d86c53
commit 746b05f91c
+1 -1
View File
@@ -17,5 +17,5 @@
"~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
};
programs.zsh.sessionVariables.SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
programs.zsh.initContent = "eval $(/opt/homebrew/bin/brew shellenv)";
programs.zsh.initContent = "[ -e /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)";
}