mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
fix(ssh-agent): add error message if ~/.ssh
is not found (#11929)
Closes #11829 Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
parent
8152dc673b
commit
0da416986a
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,11 @@ function _start_agent() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d "$HOME/.ssh" ]]; then
|
||||||
|
echo "[oh-my-zsh] ssh-agent plugin requires ~/.ssh directory"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Set a maximum lifetime for identities added to ssh-agent
|
# Set a maximum lifetime for identities added to ssh-agent
|
||||||
local lifetime
|
local lifetime
|
||||||
zstyle -s :omz:plugins:ssh-agent lifetime lifetime
|
zstyle -s :omz:plugins:ssh-agent lifetime lifetime
|
||||||
|
|
Loading…
Reference in a new issue