Sun, 02 Apr 2017 04:57:14 -0400
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 "}}}