Use direnv's add hook code on Bash and Zsh