|
|
@ -14,7 +14,15 @@ fi |
|
|
|
_gpg_env="$HOME/.gnupg/gpg-agent.env" |
|
|
|
_gpg_env="$HOME/.gnupg/gpg-agent.env" |
|
|
|
|
|
|
|
|
|
|
|
function _gpg-agent-start { |
|
|
|
function _gpg-agent-start { |
|
|
|
gpg-agent --daemon --enable-ssh-support --write-env-file "${_gpg_env}" > /dev/null |
|
|
|
local ssh_support |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zstyle -b ':prezto:module:gpg-agent' ssh-support 'ssh_support' \ |
|
|
|
|
|
|
|
|| ssh_support='' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gpg-agent \ |
|
|
|
|
|
|
|
--daemon ${ssh_support:+'--enable-ssh-support'} |
|
|
|
|
|
|
|
--write-env-file "${_gpg_env}" > /dev/null |
|
|
|
|
|
|
|
|
|
|
|
chmod 600 "${_gpg_env}" |
|
|
|
chmod 600 "${_gpg_env}" |
|
|
|
source "${_gpg_env}" > /dev/null |
|
|
|
source "${_gpg_env}" > /dev/null |
|
|
|
} |
|
|
|
} |
|
|
|