commands not found on zsh

前端 未结 16 1654
梦毁少年i
梦毁少年i 2020-12-04 06:30

I am using the z Shell (zsh) instead of the default bash, and something wrong happen so that all commands who used to work are no longer recognized:

<         


        
16条回答
  •  感动是毒
    2020-12-04 07:18

    I fixed the issue by opening the terminal preference general tab and changing the Command (complete path) to /bin/bash to default and then editing the ~/.zshrc file.

    enter image description here

    export PATH="all your path inside the quotes"
    

    ...without any whitespace between the PATH=" and save the file.

    enter image description here

    After saving the file, change the /bin/zsh in your command or select default enter image description here

    ...and restart terminal and you should have your zsh shell working again!

提交回复
热议问题