Move some bash functions into zsh