How do I update zsh to the latest version?

后端 未结 5 998
[愿得一人]
[愿得一人] 2021-01-29 17:53

I recently switched to zsh on my Terminal.app on my OS X machine successfully. The version number of zsh is 4.3.11.

5条回答
  •  故里飘歌
    2021-01-29 18:28

    If you have Homebrew installed, you can do this.

    # check the zsh info
    brew info zsh
    
    # install zsh
    brew install --without-etcdir zsh
    
    # add shell path
    sudo vim /etc/shells
    
    # add the following line into the very end of the file(/etc/shells)
    /usr/local/bin/zsh
    
    # change default shell
    chsh -s /usr/local/bin/zsh
    

    Hope it helps, thanks.

提交回复
热议问题