zero-system: update zshrc to protect keychain call

This commit is contained in:
Rick Farina (Zero_Chaos) 2026-02-19 11:01:49 -05:00
parent 7e61198b18
commit 28a73a3da8
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -140,7 +140,9 @@ if [ "${USER}" != "root" ]; then
if [ ! -r ~/.ssh/gentoo_rsa ]; then
printf "This system is missing your old key gentoo_rsa\n"
fi
eval $(keychain --eval --ignore-missing ~/.ssh/id_ed25519_sk_green ~/.ssh/id_ed25519_sk_rk_yk5cgreen ~/.ssh/id_ed25519_sk_red ~/.ssh/id_ed25519_sk_rk_yk5cred ~/.ssh/gentoo_rsa)
if [ -x "$(command -v keychain)" ]; then
eval $(keychain --eval --ignore-missing ~/.ssh/id_ed25519_sk_green ~/.ssh/id_ed25519_sk_rk_yk5cgreen ~/.ssh/id_ed25519_sk_red ~/.ssh/id_ed25519_sk_rk_yk5cred ~/.ssh/gentoo_rsa)
fi
# https://github.com/drduh/YubiKey-Guide?tab=readme-ov-file#notes
## This doesn't work but it should?