dotfiles/shell/keychain.sh
2021-12-06 12:41:02 +01:00

7 lines
192 B
Bash
Executable file

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