zsh: cleaner function d