Added note about using zsh with gpg-agent.

pull/26/head
Roger Sherman 2017-05-14 17:42:28 +10:00
parent 366830441e
commit 2bea5ec01d
1 changed files with 8 additions and 0 deletions

View File

@ -1220,6 +1220,14 @@ If you are using Linux on the desktop, you may want to use `/usr/bin/pinentry-gn
eval $(gpg-agent --daemon --enable-ssh-support --use-standard-socket \
--log-file ~/.gnupg/gpg-agent.log --write-env-file)
Zsh note - if you're using zsh, add gpg-agent to your .zshrc plugins:
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git gpg-agent)
### Copy public key to server
There is a `-L` option of `ssh-add` that lists public key parameters of all identities currently represented by the agent. Copy and paste the following output to the server authorized_keys file: