Closed andrewmwhite closed 10 years ago
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.
Makes sense to me, thanks!
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.