From 28ad7c2ddd67915648bce646ba5a8ea7176948c7 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 27 May 2020 05:35:22 -0400 Subject: [PATCH] Add gpg config --- bash/.bashrc | 3 +++ gnupg/.gnupg/gpg-agent.conf | 2 ++ gnupg/.gnupg/gpg.conf | 1 + 3 files changed, 6 insertions(+) create mode 100644 gnupg/.gnupg/gpg-agent.conf create mode 100644 gnupg/.gnupg/gpg.conf diff --git a/bash/.bashrc b/bash/.bashrc index 2f73715..ebad5f4 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -43,3 +43,6 @@ export PIPENV_DONT_LOAD_ENV=1 export PIPENV_MAX_DEPTH=20 export GPG_TTY=$(tty) +if [ -x "$(command -v gpg-connect-agent)" ]; then + gpg-connect-agent updatestartuptty /bye > /dev/null +fi diff --git a/gnupg/.gnupg/gpg-agent.conf b/gnupg/.gnupg/gpg-agent.conf new file mode 100644 index 0000000..8f27715 --- /dev/null +++ b/gnupg/.gnupg/gpg-agent.conf @@ -0,0 +1,2 @@ +grab +default-cache-ttl 1800 \ No newline at end of file diff --git a/gnupg/.gnupg/gpg.conf b/gnupg/.gnupg/gpg.conf new file mode 100644 index 0000000..e78deff --- /dev/null +++ b/gnupg/.gnupg/gpg.conf @@ -0,0 +1 @@ +use-agent \ No newline at end of file