adding gpg agent

This commit is contained in:
Rodolphe Breard 2013-11-13 15:39:59 +01:00
parent 7caf973063
commit a79968e9af
2 changed files with 9 additions and 0 deletions

View file

@ -78,3 +78,11 @@ fi
# Misc utilities # Misc utilities
fliptable() { echo "(╯°□°)╯ ┻━┻"; } 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)

View file

@ -7,6 +7,7 @@ case "$1" in
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
xcompmgr & xcompmgr &
/usr/bin/xscreensaver -no-splash & /usr/bin/xscreensaver -no-splash &
eval $(/usr/bin/gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info")
exec awesome exec awesome
;; ;;
weston|weston-launch) weston|weston-launch)