how can I run the ssh-agent auto in the zsh environment?
Solution 1:
open .zshrc in a text editor:
vim ~/.zshrc
Add ssh-agent to the plugins list and save:
plugins=(git ssh-agent)
You may want to immediately reload your .zshrc settings:
source ~/.zshrc