dotfiles/shell/keychain.sh

8 lines
189 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2017-01-26 13:48:55 +01:00
# Assert an ssh-agent (which is empty at the beginning)
2017-01-26 13:48:55 +01:00
if command -v keychain 2>&1 >/dev/null; then
eval $(keychain -q --nogui --agents ssh --timeout 600 --eval)
2017-01-26 13:48:55 +01:00
fi