changeset 60:b2d78d66fa8c

include the gpg agent info file
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 09 Feb 2013 05:18:47 +0100
parents 2e9ab483d4bd
children 37fb3d013086
files zshrc-xanthippe
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/zshrc-xanthippe	Fri Jan 04 04:37:01 2013 +0100
+++ b/zshrc-xanthippe	Sat Feb 09 05:18:47 2013 +0100
@@ -2,9 +2,15 @@
 # zshrc for xanthippe
 #
 
-. $HOME/.zsh-env/zshrc-jdk
-. $HOME/.zsh-env/zshrc-maven
-. $HOME/.zsh-env/zshrc-bindkey
+. ${HOME}/.zsh-env/zshrc-jdk
+. ${HOME}/.zsh-env/zshrc-maven
+. ${HOME}/.zsh-env/zshrc-bindkey
+
+GPG_AGENT_FILE="${HOME}/.gnupg/.gpg-agent-info"
+if [ -f "${GPG_AGENT_FILE}" ]; then
+    . "${GPG_AGENT_FILE}"
+    export GPG_AGENT_INFO
+fi
 
 export GPG_TTY=`tty`
 export PATH="$HOME/bin:${PATH}"