7 lines
188 B
Bash
7 lines
188 B
Bash
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
|
ssh-agent > "$XDG_CACHE_HOME/ssh-agent.env"
|
|
fi
|
|
if [[ ! "$SSH_AUTH_SOCK" ]]; then
|
|
source "$XDG_CACHE_HOME/ssh-agent.env" >/dev/null
|
|
fi
|