From 0509ddccabb1fce9e1dcef342f14830207571c76 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 13 Aug 2014 23:39:30 +0200 Subject: profile: moved XAUTHORITY to -leeloo, export GPG_AGENT_INFO properly --- zsh/profile-leeloo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zsh/profile-leeloo') diff --git a/zsh/profile-leeloo b/zsh/profile-leeloo index 2003877..a7ae8aa 100644 --- a/zsh/profile-leeloo +++ b/zsh/profile-leeloo @@ -4,14 +4,18 @@ source "$HOME"/misc/grawity/code/kerberos/kc.sh export PERL5LIB="$HOME"/misc/grawity/code/lib/perl5 +export XAUTHORITY="$HOME"/.local/share/xorg/authority + function { local envfile="$XDG_RUNTIME_DIR"/gpg-agent.env + if [[ -e "$envfile" ]] && kill -0 $(cut -d':' -f2 <"$envfile") &>/dev/null; then source "$envfile" else source <(gpg-agent --daemon --write-env-file "$envfile") - export GPG_AGENT_INFO fi + + export GPG_AGENT_INFO } function { -- cgit v1.2.3-70-g09d2