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
I had a similar problem after installing oh-my-zsh, but for adb command.
Looks like the PATH is shortened when oh-my-zsh is installed. I solved it using following steps.
Open the .zshrc file
sudo nano ~/.zshrc
Look for # User configuration
Un-comment the following line:
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
Save the file.
source ~/.zshrc
Give this one a try for other similar command not found errors.