]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: use pinentry-curses when connected over ssh
authorSamir Benmendil <me@rmz.io>
Mon, 1 Feb 2016 22:38:30 +0000 (22:38 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 1 Feb 2016 22:49:49 +0000 (22:49 +0000)
will this interfere with remote signing?

zsh/lib/gpg.zsh

index 7b977d40eb8275720b5165fe146ef1bb62125c42..fdc13db72e2db38e4a1266163622d1f42fd8163d 100644 (file)
@@ -4,3 +4,6 @@ fi
 
 # Inform gpg-agent of the current TTY for user prompts.
 export GPG_TTY="$(tty)"
+if [[ -n "$SSH_CONNECTION" ]]; then
+    export PINENTRY_USER_DATA="USE_CURSES=1"
+fi