diff --git a/plugins/gpg-agent/init.zsh b/plugins/gpg-agent/init.zsh index c387884..f646271 100644 --- a/plugins/gpg-agent/init.zsh +++ b/plugins/gpg-agent/init.zsh @@ -22,16 +22,14 @@ function _gpg-agent-start() { if [[ -f "${GPG_ENV}" ]]; then source "${GPG_ENV}" > /dev/null ps -ef | grep "${SSH_AGENT_PID}" | grep gpg-agent > /dev/null || { - _gpg-agent-start; + _gpg-agent-start } else - _gpg-agent-start; + _gpg-agent-start fi export GPG_AGENT_INFO export SSH_AUTH_SOCK export SSH_AGENT_PID - -GPG_TTY=$(tty) -export GPG_TTY +export GPG_TTY="$(tty)"