From 606b064790f078b8f012515d322976c2cf49dc7d Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 21 Jul 2015 15:01:31 -0700 Subject: [PATCH] Load add-zsh-hook in GPG module Fixes this error: ~/.zprezto/modules/gpg/init.zsh:43: command not found: add-zsh-hook --- modules/gpg/init.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gpg/init.zsh b/modules/gpg/init.zsh index a7c6cf76..b969c7a5 100644 --- a/modules/gpg/init.zsh +++ b/modules/gpg/init.zsh @@ -30,6 +30,9 @@ export GPG_TTY="$(tty)" # Integrate with the SSH module. if grep 'enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then + # Load required functions. + autoload -Uz add-zsh-hook + # Override the ssh-agent environment file default path. _ssh_agent_env="$_gpg_agent_env"