zsh não lê .zshrc no shell não interativo, mas zsh permite que você invocar um shell interativo para executar um script :
$ zsh -ic 'type f'
f is a shell function
ou você sempre pode fornecer .zshrc manualmente:
$ zsh -c '. ~/.zshrc; type f'
f is a shell function