This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Start SSH agent if not running | |
| SSH_ENV="$HOME/.ssh/environment" | |
| function start_agent { | |
| echo -n "Initialising new SSH agent... " | |
| /usr/bin/ssh-agent -t 3600 | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
| echo done | |
| chmod 600 "${SSH_ENV}" | |
| . "${SSH_ENV}" |
NewerOlder