[bump]
This commit is contained in:
parent
5a6e6c9a18
commit
91dc936adb
1 changed files with 8 additions and 0 deletions
8
.config/scriptrc/ssh.sh
Normal file
8
.config/scriptrc/ssh.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
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
|
Loading…
Reference in a new issue