]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/gpg.zsh
gpg: use curses pinentry when no DISPLAY is set
[dotfiles.git] / zsh / lib / gpg.zsh
index fdc13db72e2db38e4a1266163622d1f42fd8163d..b1274163c445918d41a2d3e5a623d1e0104e9074 100644 (file)
@@ -4,6 +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"
+if [[ -z "$DISPLAY" ]]; then
+    export PINENTRY_USER_DATA="curses"
 fi