about summary refs log tree commit diff stats
path: root/profile/ssh-agent.sh
blob: acd65a49d07c082619757589da088c03350d4102 (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 2>/dev/null)
else
    eval $(ssh-agent -s)
fi