1
0
Fork 0

Only launch agent if .ssh exists

main
Mari 5 years ago committed by GitHub
parent 50ce400b17
commit c76c251867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      bash_aliases.sh

@ -9,9 +9,8 @@ export EDITOR='vim -X'
sock_proxy=$HOME/.ssh/ssh_auth_sock
if [ -S "$(readlink $sock_proxy)" ]; then
export SSH_AUTH_SOCK=$sock_proxy
else
elif [[ -d $HOME/.ssh ]]; then
(
set -x
eval `ssh-agent -s`
ln -f --symbolic "$SSH_AUTH_SOCK" "$sock_proxy"
ssh-add

Loading…
Cancel
Save