From 28a73a3da8b948246e1ee402b18d6f98be6ecccd Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Thu, 19 Feb 2026 11:01:49 -0500 Subject: [PATCH] zero-system: update zshrc to protect keychain call --- pentoo/zero-system/files/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pentoo/zero-system/files/zshrc b/pentoo/zero-system/files/zshrc index b17715d51..f115fecd8 100644 --- a/pentoo/zero-system/files/zshrc +++ b/pentoo/zero-system/files/zshrc @@ -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?