diff --git a/zsh/.zshrc b/zsh/.zshrc index cb8dd87..de7a697 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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)"