you do the do

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-12-23 11:17:52 +00:00
parent e6571c689a
commit f2e3154211
5 changed files with 33 additions and 7 deletions

View file

@ -11,8 +11,11 @@ fi
if [[ $TERMUX ]]; then
export SSH_AGENT_=todo
elif command -v keychain >> /dev/null; then
export KEYCHAIN_PATH=$(command -v keychain)
eval $(keychain --agents gpg,ssh --eval)
if [[ $KEYCHAIN_LOADED != "true" ]]; then
KEYCHAIN_PATH=$(command -v keychain)
eval $(keychain --agents gpg,ssh --eval)
export KEYCHAIN_LOADED=true
fi
fi
# how about detecting local configs