I recently installed zsh and oh-my-zsh in my Mac. Now when I try to run a maven command from the terminal, I am getting the following error.
$ mvn install zs
vi ~/.zshrc
add source ~/.bash_profile to ~/.zshrc file, after the line source $ZSH/oh-my-zsh.sh
source ~/.bash_profile
source $ZSH/oh-my-zsh.sh
open up a new terminal tab and execute mvn, and it will start working.
mvn