zsh: separate local functions