force tty for pinentry

Sun, 02 Apr 2017 04:57:14 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 02 Apr 2017 04:57:14 -0400
changeset 539
911b3929f162
parent 538
0d00232760ea
child 540
c51f6fc7c727

force tty for pinentry

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -328,8 +328,8 @@ augroup END
 augroup encrypted
   autocmd!
   autocmd BufReadPre,FileReadPre *.gpg set noswapfile noundofile nobackup viminfo=
-  autocmd BufReadPost *.gpg :%!gpg2 --decrypt 2> /dev/null
-  autocmd BufWritePre *.gpg :%!gpg2 -se -a --default-recipient-self
+  autocmd BufReadPost *.gpg :%!GPG_TTY=/dev/tty gpg2 --decrypt 2> /dev/null
+  autocmd BufWritePre *.gpg :%!GPG_TTY=/dev/tty gpg2 -se -a --default-recipient-self
   autocmd BufWritePost *.gpg u
 augroup END
 "}}}

mercurial