how can I run the ssh-agent auto in the zsh environment? how can I run the ssh-agent auto in the zsh environment? linux linux

how can I run the ssh-agent auto in the zsh environment?


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