From 013350807b11840aa7e844cf75bbb91daec87f82 Mon Sep 17 00:00:00 2001 From: Ceres Date: Sat, 8 Nov 2025 18:55:28 +0000 Subject: [PATCH] Have ssh use GPG --- fish/config.fish | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fish/config.fish b/fish/config.fish index cd31b22..e3786c7 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,4 +1,13 @@ if status is-interactive + set -e SSH_AUTH_SOCK + set -U -x SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket) + + set -x GPG_TTY (tty) + + gpgconf --launch gpg-agent + + set -gx EDITOR /usr/bin/hx + # Starship custom prompt starship init fish | source @@ -40,5 +49,3 @@ if status is-interactive echo -en "\e]133;A\e\\" end end - -set -gx EDITOR /usr/bin/hx