[zsh] Try injecting ssh socket in env
This commit is contained in:
@ -56,6 +56,11 @@ export TERM=xterm-256color
|
|||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export VISUAL="$EDITOR"
|
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
|
case "$(uname -s)" in
|
||||||
Linux)
|
Linux)
|
||||||
[[ -d "/home/linuxbrew/.linuxbrew/bin" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
[[ -d "/home/linuxbrew/.linuxbrew/bin" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|||||||
Reference in New Issue
Block a user