aboutsummaryrefslogtreecommitdiffstats
path: root/_gnupg
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-05-15 10:26:59 +0800
committerAaron LI <aaronly.me@gmail.com>2016-05-15 10:26:59 +0800
commite0999c11a8c4fd2454fa4a57779feb0898dbdb68 (patch)
tree10b8ab8edf311b343d2786565c6a73f6063f0a68 /_gnupg
parent9de6b50827dd59da3d49d239acb3b2cc88ea04da (diff)
downloaddotfiles-e0999c11a8c4fd2454fa4a57779feb0898dbdb68.tar.bz2
gpg-agent.conf: update settings according to gpg-agent(1)
Diffstat (limited to '_gnupg')
-rw-r--r--_gnupg/gpg-agent.conf32
1 files changed, 18 insertions, 14 deletions
diff --git a/_gnupg/gpg-agent.conf b/_gnupg/gpg-agent.conf
index 35d2924..50a849e 100644
--- a/_gnupg/gpg-agent.conf
+++ b/_gnupg/gpg-agent.conf
@@ -1,21 +1,25 @@
-#####################################################################
-# GnuPG Agent configuration file
+#
# ~/.gnupg/gpg-agent.conf
+# GnuPG Agent configuration file
+# See `gpg-agent(1)'
#
-# Ref:
-# Gentoo wiki: GnuPG
+# The agent is automatically started on demand, thus there is no reason
+# to start it manually.
+#
+# Reference:
+# [1] GnuPG - Gentoo Wiki
+# https://wiki.gentoo.org/wiki/GnuPG
+#
+# Aaron LI
+# Created: 2014-06-12
+# Updated: 2016-05-15
#
-# Weitian LI <liweitianux@gmail.com>
-# 2014/06/12
-#####################################################################
-
-pinentry-program /usr/bin/pinentry-gtk-2
-#pinentry-program /usr/bin/pinentry-qt4
-#pinentry-program /usr/bin/pinentry-curses
-no-grab
+# Set the time a cache entry is valid (default: 600 seconds)
+# Each time a cache entry is accessed, the entry's timer is reset
+default-cache-ttl 600
-# default timeout of the passphrase (60 minutes)
-default-cache-ttl 3600
+# Set the maximum time a cache entry is valid (default: 7200 seconds)
+max-cache-ttl 3600
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=gpg: #