From a79968e9af001cdbeab6029332551dfb3ccccbf3 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Wed, 13 Nov 2013 15:39:59 +0100 Subject: [PATCH] adding gpg agent --- .bashrc | 8 ++++++++ .xinitrc | 1 + 2 files changed, 9 insertions(+) diff --git a/.bashrc b/.bashrc index 12a7704..6d762ea 100644 --- a/.bashrc +++ b/.bashrc @@ -78,3 +78,11 @@ fi # Misc utilities fliptable() { echo "(╯°□°)╯ ┻━┻"; } + +# GPG Agent +if [ -f "${HOME}/.gpg-agent-info" ]; then + . "${HOME}/.gpg-agent-info" + export GPG_AGENT_INFO + export SSH_AUTH_SOCK +fi +export GPG_TTY=$(tty) diff --git a/.xinitrc b/.xinitrc index bef0813..3dcbea9 100755 --- a/.xinitrc +++ b/.xinitrc @@ -7,6 +7,7 @@ case "$1" in [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources xcompmgr & /usr/bin/xscreensaver -no-splash & + eval $(/usr/bin/gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info") exec awesome ;; weston|weston-launch)