support Zsh function hooks for Bash