1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh # Used for work laptop. # Add personal key and start the ssh-agent with it. set -xe ssh_personal_key="${HOME}/.ssh/id_personal" test -f "${ssh_personal_key}" eval "$(ssh-agent)" ssh-add "${ssh_personal_key}" set +xe