md func for zsh and who knows what else