1 # Add "source $HOME/.profile-sshagent" to your .profile
3 SSH_AGENT_FILE=~/.ssh/ssh-agent-info-$(hostname)
4 if [ -f "$SSH_AGENT_FILE" ]; then
5 source "$SSH_AGENT_FILE" > /dev/null
7 if [ ! -w "$SSH_AUTH_SOCK" ]; then
8 /usr/bin/ssh-agent -s > "$SSH_AGENT_FILE" && \
9 source "$SSH_AGENT_FILE" > /dev/null
16 # sh-indent-comment: t
17 # indent-tabs-mode: nil
19 # ex: ts=4 sw=4 et filetype=sh