add hook function for local zsh scripts