|
|
|
@ -14,7 +14,15 @@ fi
@@ -14,7 +14,15 @@ fi
|
|
|
|
|
_gpg_env="$HOME/.gnupg/gpg-agent.env" |
|
|
|
|
|
|
|
|
|
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}" |
|
|
|
|
source "${_gpg_env}" > /dev/null |
|
|
|
|
} |
|
|
|
|