The plugin starts gpg-agent
automatically with ssh-agent support.
To override the default gpg-agent
, execute the below command to set the GPG_AGENT
in your ~/.zshenv
config.
if ! egrep -q '^[^#].*GPG_AGENT=' ~/.zshenv; then echo 'export GPG_AGENT="other_agent"' >> ~/.zshenv; fi
Using zplug
Load gpg-agent as a plugin in your .zshrc
zplug "rhuang2014/gpg-agent"