#!/bin/bash if [[ "$(ssh-add -l)" =~ "no identities" ]]; then ssh-add $HOME/.ssh/joshs_key