mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
9 lines
217 B
Bash
9 lines
217 B
Bash
export TMPDIR=${TMPDIR:-/tmp}
|
|
|
|
if ! pgrep -U "$UID" ssh-agent > /dev/null; then
|
|
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
|
|
fi
|
|
if [[ ! "$SSH_AUTH_SOCK" ]]; then
|
|
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
|
|
fi
|