summaryrefslogtreecommitdiff
path: root/dots/zsh/.config/zsh/setup/gpg.zsh.j2
diff options
context:
space:
mode:
Diffstat (limited to 'dots/zsh/.config/zsh/setup/gpg.zsh.j2')
-rwxr-xr-xdots/zsh/.config/zsh/setup/gpg.zsh.j27
1 files changed, 2 insertions, 5 deletions
diff --git a/dots/zsh/.config/zsh/setup/gpg.zsh.j2 b/dots/zsh/.config/zsh/setup/gpg.zsh.j2
index 4ffb38f..ea5a418 100755
--- a/dots/zsh/.config/zsh/setup/gpg.zsh.j2
+++ b/dots/zsh/.config/zsh/setup/gpg.zsh.j2
@@ -1,20 +1,17 @@
#!/bin/zsh
-
# -- <gpg> --
KEY_ID="{{ pgp.id }}"
gpg -k "$KEY_ID" >/dev/null 2>&1 || gpg --import "$HOME/.pubkey"
-cp $HOME/scripts/pinentry.sh /tmp/pinentry
-
-
export PINENTRY_USER_DATA="${PINENTRY_USER_DATA:-PINENTRY_USE_TTY}"
if [ "$SSH_CLIENT" ]; then
export PINENTRY_USER_DATA=PINENTRY_USE_CURSES
exit 0
fi
-# yubikey!
+# yubikey ssh, gpg, and the works!
+# https://github.com/drduh/YubiKey-Guide
unset SSH_AGENT_PID
export GPG_TTY=$(tty)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)