mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
initial commit
This commit is contained in:
commit
86a1da2632
35 changed files with 1162 additions and 0 deletions
11
shell/keychain.sh
Executable file
11
shell/keychain.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue