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