Command not found - Oh-My-Zsh

前端 未结 12 950
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-25 11:54

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         


        
12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-25 12:53

    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.

    1. Open the .zshrc file

      sudo nano ~/.zshrc
      
    2. Look for # User configuration

      Un-comment the following line:

      export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
      
    3. Save the file.

    4. source ~/.zshrc

    Give this one a try for other similar command not found errors.

提交回复
热议问题