feat(gpg): add gpg-agent.conf and fish function

This commit is contained in:
Sergio Laín 2024-10-13 13:27:52 +02:00
parent 116cd771b0
commit efca1a3c5c
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,6 @@
set -e SSH_AGENT_PID
if test -z $gnupg_SSH_AUTH_SOCK_BY; or test $gnupg_SSH_AUTH_SOCK_BY -ne $fish_pid
set -gx SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
end
set -gx GPG_TTY (tty)
gpg-connect-agent updatestartuptty /bye >/dev/null

1
.gnupg/gpg-agent.conf Normal file
View file

@ -0,0 +1 @@
enable-ssh-support