zsh: function automagic