~proycon/dotfiles

28878656e446c8ceced587e8adab3a84c152a5bf — Maarten van Gompel 18 days ago ceae076
fallback XDG_RUNTIME_DIR
1 files changed, 4 insertions(+), 0 deletions(-)

M zshrc
M zshrc => zshrc +4 -0
@@ 413,6 413,10 @@ export GPGKEY="8AC624881EF2AC30C0E68E2C39FE11201A31555C"
GPG_TTY=$(tty)
export GPG_TTY

if [ -z "$XDG_RUNTIME_DIR" ]; then
    export XDG_RUNTIME_DIR="/tmp"
fi

if ! pgrep -u "$USER" ssh-agent > /dev/null; then
    ssh-agent -t 6h > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi