if [ -f "/run/user/1000/ssh-agent.socket" ]; then
  export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket
fi

# This makes use of the systemd unit which sets up this socket
if [ -e "/run/user/$(id -u)/ssh-agent.socket" ]; then
  export SSH_AUTH_SOCK=/run/user/$(id -u)/ssh-agent.socket
fi

Fix shell setup for setting SSH agent socket location
Fix shell setup for setting SSH agent socket location

Bugs:
 - Check if file exists, but not a regular file
 - Don't hardcode user id
