]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/gpg.zsh
zsh: use pinentry-curses when connected over ssh
[dotfiles.git] / zsh / lib / gpg.zsh
index 7b977d40eb8275720b5165fe146ef1bb62125c42..fdc13db72e2db38e4a1266163622d1f42fd8163d 100644 (file)
@@ -4,3 +4,6 @@ fi
 
 # Inform gpg-agent of the current TTY for user prompts.
 export GPG_TTY="$(tty)"
+if [[ -n "$SSH_CONNECTION" ]]; then
+    export PINENTRY_USER_DATA="USE_CURSES=1"
+fi