]> git.rmz.io Git - dotfiles.git/commitdiff
gpg: explicitely set PINENTRY_USER_DATA=qt when DISPLAY is defined master
authorSamir Benmendil <me@rmz.io>
Fri, 6 Jun 2025 13:21:18 +0000 (14:21 +0100)
committerSamir Benmendil <me@rmz.io>
Fri, 6 Jun 2025 13:21:18 +0000 (14:21 +0100)
zshenv

diff --git a/zshenv b/zshenv
index b0fdbfed56b983cca6c7f60153c160a54e6d2dd2..2a4f38de7b01f6c3630cdb9b2311e83e8d1704cc 100644 (file)
--- a/zshenv
+++ b/zshenv
@@ -12,8 +12,8 @@ export THEME=nord
 # gpg
 export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
 #TODO this should probably be set for all shells?
-if [[ -z "$DISPLAY" ]]; then
-    export PINENTRY_USER_DATA="curses"
+if [[ -n "$DISPLAY" ]]; then
+    export PINENTRY_USER_DATA="qt"
 fi
 
 # ssh