ssh: use hardcoded ssh agent path

This commit is contained in:
Daniel Lundin 2020-02-12 12:35:37 +01:00
parent 4abc69f5d6
commit a2eeed09b9

7
.zshrc
View file

@ -151,9 +151,14 @@ function prompt_command {
eval $(tmux switch-client \; show-environment -s 2>/dev/null)
}
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
# laptop specifics
if [[ "${HOST}" = "lilbub" ]]; then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
GPG_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
if [[ "${GPG_AUTH_SOCK}" != "" ]]; then
ln -sf $GPG_AUTH_SOCK $SSH_AUTH_SOCK
fi
if [[ "${TMUX}" != "" ]]; then
tmux set -g status-fg "#ffebee"