fix(ssh-agent): add error message if `~/.ssh` is not found (#11929)

Closes #11829 

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
master
Vishal Sharma 2 years ago committed by GitHub
parent 8152dc673b
commit 0da416986a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      plugins/ssh-agent/ssh-agent.plugin.zsh

@ -13,6 +13,11 @@ function _start_agent() {
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
local lifetime
zstyle -s :omz:plugins:ssh-agent lifetime lifetime

Loading…
Cancel
Save