I assume you're referring to this? It doesn't say anything about .zshrc.
Indeed! So I simply dropped the example code into an executable at ~/bin and run that. It works perfectly. The fact that it ran when I reloaded zsh should have been a big clue but I'm new to zsh so I'm a little disoriented.
Thanks for your help and explanation!