]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - bash/.bashrc
Change the way gpg agent is called
[max/dotfiles.git] / bash / .bashrc
index 3cf998a6047a9e4ca9da5f73f8a6d34be1679569..9413671004c9a1aa828f881871507dfc42e58853 100644 (file)
@@ -112,3 +112,14 @@ function __prompt_command()
   PS1+="\$ "
 }
 PROMPT_COMMAND=__prompt_command
+
+
+if [ -f "${HOME}/.gpg-agent-info" ]; then
+  . "${HOME}/.gpg-agent-info"
+  export GPG_AGENT_INFO
+  export SSH_AUTH_SOCK
+fi
+
+
+# Set GPG TTY
+export GPG_TTY=$(tty)