Move ssh/gpg agent env init from arch => arch-desktop

This commit is contained in:
Henrik Lissner 2017-12-30 18:39:33 -05:00
parent 904cc23e81
commit 5b7bff0516
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 9 additions and 9 deletions

View file

@ -3,3 +3,12 @@ export GNUPGHOME="$XDG_CONFIG_HOME/gpg"
export GTK2_RC_FILES="${0:A:h}/config/gtk-2.0/gtkrc" export GTK2_RC_FILES="${0:A:h}/config/gtk-2.0/gtkrc"
export URXVT_PERL_LIB="$XDG_CONFIG_HOME/urxvt" export URXVT_PERL_LIB="$XDG_CONFIG_HOME/urxvt"
export QT_QPA_PLATFORMTHEME=gtk2 export QT_QPA_PLATFORMTHEME=gtk2
_is_running ssh-agent || {
ssh-agent -s >"$XDG_RUNTIME_DIR/ssh-agent-env"
}
_is_running gpg-agent || {
gpg-agent --daemon >"$XDG_RUNTIME_DIR/gpg-agent-env"
}
_source "$XDG_RUNTIME_DIR/ssh-agent-env" >/dev/null
_source "$XDG_RUNTIME_DIR/gpg-agent-env" >/dev/null

View file

@ -1,11 +1,2 @@
export GNUPGHOME="$XDG_CONFIG_HOME/gpg" export GNUPGHOME="$XDG_CONFIG_HOME/gpg"
export TERMINFO="$XDG_CONFIG_HOME/terminfo" export TERMINFO="$XDG_CONFIG_HOME/terminfo"
_is_running ssh-agent || {
ssh-agent -s >"$XDG_RUNTIME_DIR/ssh-agent-env"
}
_is_running gpg-agent || {
gpg-agent --daemon >"$XDG_RUNTIME_DIR/gpg-agent-env"
}
_source "$XDG_RUNTIME_DIR/ssh-agent-env" >/dev/null
_source "$XDG_RUNTIME_DIR/gpg-agent-env" >/dev/null