m 2 zsh-user: load gpg-agent, obsoletes oh-my-zsh ssh plugin
This commit is contained in:
parent
c20d38e11e
commit
cf033f051a
@ -22,6 +22,16 @@ in
|
|||||||
|
|
||||||
autoload -U compinit && compinit
|
autoload -U compinit && compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
|
# load gpg-agent
|
||||||
|
envfile="$HOME/.gnupg/gpg-agent.env"
|
||||||
|
if [ -e "$envfile" ] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then
|
||||||
|
eval "$(cat "$envfile")"
|
||||||
|
else
|
||||||
|
eval "$(${pkgs.gnupg}/bin/gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")"
|
||||||
|
fi
|
||||||
|
export GPG_AGENT_INFO
|
||||||
|
export SSH_AUTH_SOCK
|
||||||
'';
|
'';
|
||||||
|
|
||||||
promptInit = ''
|
promptInit = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user