Browse Source

set $GPG_TTY

Fabian Peter Hammerle 5 years ago
parent
commit
57d20a33af
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rc.xsh

+ 3 - 0
rc.xsh

@@ -26,4 +26,7 @@ $RIGHT_PROMPT = '{gitstatus}{env_name: {}}'
 
 import re as re
 
+# required by pinentry-tty when using gpg command:
+$GPG_TTY=$(tty)
+
 # vim: filetype=python