dotfiles/shell/keychain.sh
2019-06-26 19:39:45 +02:00

7 lines
189 B
Bash
Executable file

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