Skip to content

Commit

Permalink
Load add-zsh-hook in GPG module
Browse files Browse the repository at this point in the history
Fixes this error:

    ~/.zprezto/modules/gpg/init.zsh:43: command not found: add-zsh-hook
  • Loading branch information
andyleejordan authored and sorin-ionescu committed Nov 12, 2015
1 parent a7e4b44 commit 2ad1b2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/gpg/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 2ad1b2f

Please sign in to comment.