]> 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 a9f81a2ebd255db545a0b987adb5caed23a6076a..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
+if [[ -z "$DISPLAY" ]]; then
     export PINENTRY_USER_DATA="curses"
 fi