commands not found on zsh

前端 未结 16 1620
梦毁少年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:24

    Best solution work for me for permanent change path

    Open Finder-> go to folder /Users/ /usr/local/bin

    open .zshrc with TextEdit

    .zshrc is hidden file so unhide it by command+shift+. press

    delete file content and type

    export PATH=~/usr/bin:/bin:/usr/sbin:/sbin:$PATH

    and save

    now

    zsh: command not found Gone

提交回复
热议问题