blob: 7afb7c6ea0860596ce1bf9bf5116b7e50cf05150 (
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="$XDG_RUNTIME_DIR/keychain"
eval $(keychain --eval --dir "$KEYCHAIN_HOME" --agents ssh 2>/dev/null)
else
eval $(ssh-agent -s)
fi
|