summary refs log tree commit diff stats
path: root/bin/gk
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-04-12 23:57:00 -0400
committerBen Morrison <ben@gbmor.dev>2020-04-25 00:39:30 -0400
commit45d920c8ec323bf5d91de23bdb49f61c152b1301 (patch)
tree0bea7db6494a2803dfe18d02dbdeb2eec9811b9b /bin/gk
downloaddogfiles-45d920c8ec323bf5d91de23bdb49f61c152b1301.tar.gz
Lots of unimportant changes happened before this
point, that I absolutely will never need a record of.
Diffstat (limited to 'bin/gk')
-rwxr-xr-xbin/gk9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/gk b/bin/gk
new file mode 100755
index 0000000..f0886f6
--- /dev/null
+++ b/bin/gk
@@ -0,0 +1,9 @@
+#!/bin/sh
+pkill gpg-agent
+
+export GPG_TTY="$(tty)"
+export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+gpg-connect-agent updatestartuptty /bye
+
+gpgconf --create-socketdir
+