diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-08-13 23:39:30 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-08-13 23:39:30 +0200 |
commit | 0509ddccabb1fce9e1dcef342f14830207571c76 (patch) | |
tree | 3d9eebaf2fdb6a15bd8f43b1afb9d72026bc6fcc | |
parent | dc7bb2769430a61e528863a3ce7e566b8ce561b7 (diff) | |
download | dotfiles-0509ddccabb1fce9e1dcef342f14830207571c76.tar.xz |
profile: moved XAUTHORITY to -leeloo, export GPG_AGENT_INFO properly
-rw-r--r-- | zsh/.zprofile | 1 | ||||
-rw-r--r-- | zsh/profile-leeloo | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/zsh/.zprofile b/zsh/.zprofile index a0ca536..50ce356 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -8,7 +8,6 @@ export MPV_HOME="$XDG_CONFIG_HOME"/mpv export GNUPGHOME="$XDG_CONFIG_HOME"/gnupg export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc-2.0 export XCOMPOSEFILE="$XDG_CONFIG_HOME"/X11/XCompose -export XAUTHORITY="$HOME"/.local/share/xorg/authority export ABSROOT="$HOME"/build/abs 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 { |