[zsh] Try injecting ssh socket in env

This commit is contained in:
2026-03-13 18:13:20 -04:00
parent f5df889476
commit e3037d237c

View File

@ -56,6 +56,11 @@ export TERM=xterm-256color
export EDITOR=vim
export VISUAL="$EDITOR"
# SSH_AUTH_SOCK - common locations for Linux and macOS
for sock in "$SSH_AUTH_SOCK" "$XDG_RUNTIME_DIR/ssh-agent.socket" "/run/user/1000/ssh-agent.socket"; do
[[ -S "$sock" ]] && export SSH_AUTH_SOCK="$sock" && break
done
case "$(uname -s)" in
Linux)
[[ -d "/home/linuxbrew/.linuxbrew/bin" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"