aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: #