From 4b6beb0ff5fcec159035ba0a44d5e0c843d29f3c Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Thu, 17 May 2018 21:49:23 -0400 Subject: [PATCH] zero-system: fix key location, I'm a jerk --- pentoo/zero-system/files/zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pentoo/zero-system/files/zshrc b/pentoo/zero-system/files/zshrc index cd5ad6695..ddbd5c2bb 100644 --- a/pentoo/zero-system/files/zshrc +++ b/pentoo/zero-system/files/zshrc @@ -59,8 +59,12 @@ bindkey "\eOF" end-of-line #bindkey "\eOc" forward-word if [ "${USER}" != "root" ]; then - #eval `keychain --eval ~/.ssh/gentoo_rsa DD11F94A` - eval `keychain --eval ~/.ssh/gentoo_rsa` + if [ -r "~/.ssh/gentoo_rsa" ]; then + #eval `keychain --eval ~/.ssh/gentoo_rsa DD11F94A` + eval `keychain --eval ~/.ssh/gentoo_rsa` + elif [ -r "~/.ssh/id_rsa" ]; then + eval `keychain --eval ~/.ssh/id_rsa` + fi #eval `gpg-agent --daemon --enable-ssh-support` fi