From 2ad1b2f5b1f5997f9473b1f8705ab8d000d51600 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"