diff --git a/gnupg/dot-gnupg/gpg-agent.conf b/gnupg/dot-gnupg/gpg-agent.conf new file mode 100644 index 0000000..b3f2573 --- /dev/null +++ b/gnupg/dot-gnupg/gpg-agent.conf @@ -0,0 +1,6 @@ +enable-ssh-support + +default-cache-ttl 180800 +max-cache-ttl 180800 +default-cache-ttl-ssh 180800 +max-cache-ttl-ssh 180800 diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index adc7eed..38888ce 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -157,3 +157,7 @@ if (( $+commands[tmux] )); then exit fi fi + +# GPG-Agent +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent