From efca1a3c5c4ce9b911542c931d1fea9c2775d863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 13 Oct 2024 13:27:52 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(gpg):=20add=20gpg-agent.conf?= =?UTF-8?q?=20and=20fish=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/conf.d/gnupg.fish | 6 ++++++ .gnupg/gpg-agent.conf | 1 + 2 files changed, 7 insertions(+) create mode 100644 .config/fish/conf.d/gnupg.fish create mode 100644 .gnupg/gpg-agent.conf diff --git a/.config/fish/conf.d/gnupg.fish b/.config/fish/conf.d/gnupg.fish new file mode 100644 index 00000000..9b3ffb3d --- /dev/null +++ b/.config/fish/conf.d/gnupg.fish @@ -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 diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf new file mode 100644 index 00000000..85405bc1 --- /dev/null +++ b/.gnupg/gpg-agent.conf @@ -0,0 +1 @@ +enable-ssh-support