From d34974413a6849f24dcfed3999bcb789829becc9 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 3 Sep 2015 22:13:46 +0200 Subject: [PATCH] Keychain and ssh-agent works fine. --- zlogin | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/zlogin b/zlogin index 007fd45..151239a 100644 --- a/zlogin +++ b/zlogin @@ -93,15 +93,21 @@ fi # Launch Keychain for ssh -if [ -f $HOME/.keychain/$HOST-sh ]; then +#if [ -f $HOME/.keychain/$HOST-sh ]; then + #. $HOME/.keychain/$HOST-sh +#else + #if [ -f $HOME/.ssh/id_rsa ]; then + #keychain --agents ssh id_rsa + #. $HOME/.keychain/$HOST-sh + #fi +#fi + +if [ -f $HOME/.ssh/id_rsa ]; then + keychain --agents ssh id_rsa . $HOME/.keychain/$HOST-sh -else - if [ -f $HOME/.ssh/id_rsa ]; then - keychain --agents ssh id_rsa - . $HOME/.keychain/$HOST-sh - fi fi + # Launch Keychain for GPG #[ -f $HOME/.keychain/$HOST-sh-gpg ] && \ #keychain --agents gpg