8 lines
236 B
Bash
8 lines
236 B
Bash
if [[ "$(uname)" != "Darwin" ]]; then
|
|
if type ssh-agent &>/dev/null; then
|
|
ssh-add &>/dev/null || eval `ssh-agent -s`
|
|
if [[ "$(ssh-add -l)" == "The agent has no identities." ]] ; then
|
|
ssh-add ~/.ssh/id_rsa
|
|
fi
|
|
fi
|
|
fi
|