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

# use keychain(1), if available
if execp keychain
then
	# Save directory name in a variable (for ease of maintenance)
	export KEYCHAIN_HOME="$XDG_RUNTIME_DIR/"
	eval $(keychain --quiet --eval --dir "$KEYCHAIN_HOME" --agents ssh)
else
	eval $(ssh-agent -s)
fi