mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 02:54:40 +02:00
11 lines
361 B
Bash
Executable file
11 lines
361 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# array to process, either folders or directories for recursive processing
|
|
KEYPATHS+=("$HOME/.ssh/keys" "$HOME/.ssh/gitlab_rsa" "$HOME/.ssh/id_rsa")
|
|
|
|
if command -v keychain 2>&1 >/dev/null; then
|
|
eval \
|
|
`find ${KEYPATHS[@]} -type f -not -name '*.pub' 2>/dev/null \
|
|
| xargs keychain -q --nogui --agents ssh --timeout 600 --eval`
|
|
fi
|
|
unset KEYPATHS
|