#!/usr/bin/env fish set -e SSH_AGENT_PID if not set -q gnupg_SSH_AUTH_SOCK_by or test $gnupg_SSH_AUTH_SOCK_by -ne %self set -gx SSH_AUTH_SOCK "$HOME/.gnupg/S.gpg-agent.ssh" end export GPG_TTY=(tty) gpg-connect-agent updatestartuptty /bye >/dev/null