|
|
@ -35,6 +35,12 @@ if grep 'enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then |
|
|
|
|
|
|
|
|
|
|
|
# Load the SSH module for additional processing. |
|
|
|
# Load the SSH module for additional processing. |
|
|
|
pmodload 'ssh' |
|
|
|
pmodload 'ssh' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Updates the GPG-Agent TTY before every command since SSH does not set it. |
|
|
|
|
|
|
|
function _gpg-agent-update-tty { |
|
|
|
|
|
|
|
gpg-connect-agent UPDATESTARTUPTTY /bye >/dev/null |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
add-zsh-hook preexec _gpg-agent-update-tty |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Clean up. |
|
|
|
# Clean up. |
|
|
|