Sat, 16 Mar 2019 18:43:43 -0400
Fix up gpg stuff
.profile.common | file | annotate | diff | comparison | revisions | |
.vimrc | file | annotate | diff | comparison | revisions |
--- a/.profile.common +++ b/.profile.common @@ -10,6 +10,7 @@ make -s -C ~/.ssh || { export EDITOR=vim export SUDO_EDITOR=$HOME/bin/privim export LESS='Ri' +export GPG_TTY="$(tty)" export PERL_CPANM_OPT='-nq --prompt' export DEVEL_REPL_PROFILE='Standard'
--- a/.vimrc +++ b/.vimrc @@ -298,10 +298,10 @@ augroup END " hacked to work with vimwiki augroup encrypted autocmd! - autocmd BufReadPre,FileReadPre *.gpg,*.gpg.wiki setl noswapfile noundofile nobackup viminfo= - autocmd BufReadPost *.gpg,*.gpg.wiki :sil %!GPG_TTY=/dev/tty gpg2 --decrypt 2> /dev/null - autocmd BufWritePre *.gpg,*.gpg.wiki :sil %!GPG_TTY=/dev/tty gpg2 -se -a --default-recipient-self - autocmd BufWritePost *.gpg,*.gpg.wiki :sil undo + autocmd BufReadPre,FileReadPre *.gpg,*.gpg.* setl noswapfile noundofile nobackup viminfo= + autocmd BufReadPost *.gpg,*.gpg.* :sil %!gpg2 -d + autocmd BufWritePre *.gpg,*.gpg.* :sil %!gpg2 -se -a --default-recipient-self + autocmd BufWritePost *.gpg,*.gpg.* :sil undo augroup END "}}}