my-fish-config/conf.d/gpg-agent.fish
2025-03-18 19:21:17 +01:00

9 lines
368 B
Fish
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Gnome Keyring can (and will) mess up SSH_AUTH_SOCK, but we cant simply overwrite it, because auth forwarding mangles
# it, too
if not set -q SSH_AUTH_SOCK or string match -q "$HOME/.cache/keyring-*/ssh" $SSH_AUTH_SOCK
set -gx SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
end
set -gx GPG_TTY (tty)
#gpg-connect-agent updatestartuptty /bye > /dev/null