commands not found on zsh

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

    My solution:

    Change back to bash:

    source .bashrc
    

    next:

    echo $PATH
    

    copy this:

    /home/frank/.asdf/shims:/home/frank/....
    

    back to the zsh:

    source .zsh
    

    open .zshrc:

    and paste:

     export PATH=/home/frank/.asdf/shims:/home/frank/....
    

    restart terminal

提交回复
热议问题