From d4b51f09d83f75a663c5711af77e0e6da40764a9 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 1 Feb 2016 22:38:30 +0000 Subject: [PATCH] zsh: use pinentry-curses when connected over ssh will this interfere with remote signing? --- zsh/lib/gpg.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/lib/gpg.zsh b/zsh/lib/gpg.zsh index 7b977d4..fdc13db 100644 --- a/zsh/lib/gpg.zsh +++ b/zsh/lib/gpg.zsh @@ -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 -- 2.48.1