commands not found on zsh

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

    In my case, it was by mistake the commented code was uncommented at the very first line.

    # If you come from bash you might have to change your $PATH.
    

    The hash was removed. After adding it back worked fine.

    I just posted this here so someone might find this helpful. Because it's just start of the line and might be deleted by mistake like I had done. And seems there's no solution after trying several ways.

提交回复
热议问题