Zsh : command not found : ng on new Mac OS Catalina

后端 未结 4 2105
执笔经年
执笔经年 2021-02-08 07:36

I have download the new Mac OS Version Beta of Catalina. Now I should start to use Zsh. But when I want to run a Angular project in Atom, I receveid this message : \"The default

4条回答
  •  星月不相逢
    2021-02-08 08:08

    I also lost access to my commands after moving over to zsh following the Catalina upgrade. This fixed it for me: source /Users/YOURUSERNAME/.bash_profile

    In order to get these changes to persist, I used oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh).

    Install with curl: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

    Then modify your .zshrc file: vi ~/.zshrc

    Underneath this line: source $ZSH/oh-my-zsh.sh

    I simply added the command I mentioned at the start of the post:

    source /Users/YOURUSERNAME/.bash_profile

    Save the file as you normally would with vi/vim: :wq

    Oh-my-zsh is also capable of a lot of cool things so be sure to read the documentation.

提交回复
热议问题