#!/bin/sh if [ -f .ssh-agent ]; then . .ssh-agent else killall ssh-agent ssh-agent > .ssh-agent ssh-add ~/.ssh/id_rsa fi