helm/base/arch/env.zsh
2017-12-13 18:28:21 -05:00

12 lines
351 B
Bash

export GNUPGHOME="$XDG_CONFIG_HOME/gpg"
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