about summary refs log tree commit diff stats
path: root/profile/ssh-agent.sh
blob: 8e478c22c64051348f941e80978a550f3a98c9ad (plain)
1
2
3
4
5
6
7
8
9
10
# start the ssh-agent

# use keychain(1), if available
if type keychain > /dev/null 2>&1; then
    # Save directory name in a variable (for ease of maintenance)
    export KEYCHAIN_HOME="$HOME/.keychain"
    eval $(keychain --eval --dir "$KEYCHAIN_HOME" --agents ssh)
else
    eval $(ssh-agent -s)
fi