From 40dd68db21e70445fb2f85c36f32d997f3ca71fa Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 5 Jan 2015 17:17:11 +0100 Subject: [PATCH] improve ssh though gpg agent --- gnupg/gpg-agent.conf | 4 ++++ zshrc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gnupg/gpg-agent.conf b/gnupg/gpg-agent.conf index f4e34f4..98b2a97 100644 --- a/gnupg/gpg-agent.conf +++ b/gnupg/gpg-agent.conf @@ -8,3 +8,7 @@ no-grab # pinentry-program /usr/bin/pinentry-kwallet pinentry-program /usr/bin/pinentry-gtk-2 +# Cache settings +default-cache-ttl 10800 +default-cache-ttl-ssh 10800 + diff --git a/zshrc b/zshrc index d1e0cb7..ae1ad57 100644 --- a/zshrc +++ b/zshrc @@ -43,7 +43,7 @@ export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" export EDITOR="vim" stty -ixon # turn of for vimshell -# GPG-agent +# GPG ssh tty +export GPG_TTY=$(tty) envoy -t gpg-agent source <(envoy -p) -