Launch ssh-agent if source file is unavailable
This commit is contained in:
parent
0bb4f5a1b7
commit
dfb7d0f727
8
zlogin
8
zlogin
|
@ -78,13 +78,13 @@ if [ ${USER} != "root" ] && [ $(command -v startx) ]; then
|
|||
fi
|
||||
|
||||
if [ -f $HOME/.ssh/id_rsa ]; then
|
||||
keychain --agents ssh id_rsa
|
||||
. $HOME/.keychain/$HOST-sh
|
||||
[[ ! -f ~/.keychain/$HOST-sh ]] && keychain --agents ssh id_rsa
|
||||
source ~/.keychain/$HOST-sh
|
||||
fi
|
||||
|
||||
if [ -f $HOME/.ssh/id_ed25519 ]; then
|
||||
keychain --agents ssh id_ed25519
|
||||
. $HOME/.keychain/$HOST-sh
|
||||
[[ ! -f ~/.keychain/$HOST-sh ]] && keychain --agents ssh id_ed25519
|
||||
source ~/.keychain/$HOST-sh
|
||||
fi
|
||||
|
||||
# GPG Agent
|
||||
|
|
Loading…
Reference in New Issue