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