From e53c78eedff7d6b51cb824f92671a73a7411d1f2 Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Sat, 15 Oct 2022 02:38:38 -0400 Subject: update git, gpg, neomutt confs for new gpg key. add line to gk to make it easier to switch yubikeys. --- bin/gk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin/gk') diff --git a/bin/gk b/bin/gk index a25edf8..942a890 100755 --- a/bin/gk +++ b/bin/gk @@ -1,9 +1,16 @@ #!/bin/sh + +PARAM="$1" + pkill -9 gpg-agent export GPG_TTY=$(tty) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) -gpg-connect-agent updatestartuptty /bye +if [ "$PARAM" = "switch" ]; then + gpg-connect-agent "scd serialno" "learn --force" /bye +fi + +gpg-connect-agent updatestartuptty /bye gpgconf --create-socketdir -- cgit 1.4.1