jimhester/per-directory-history — pull request #8 by andrewmwhite (2014-07-26 17:25:04+00:00)
Title: Prevent duplicates in hook function arrays

If the module was sourced twice, the hook functions would each appear
twice in their hook's array and hence be run twice. Using 'add-zsh-hook'
prevents this.