blob: 7af5219cb848b8f10fbf5abdeabe0efcc33556aa (
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 -q)
else
eval $(ssh-agent -s)
fi
|