WSL2子系統下ubuntu18.04安裝oh-my-zsh
- sudo apt-get install zsh
- wget --no-check-certificate https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -O - | sh
第二步出錯的話,可以嘗試下面的方法
git clone https://gitee.com/mirrors/oh-my-zsh.git
cd oh-my-zsh
cd tools
./install.sh
- chsh -s /bin/zsh 將默認的shell從bash改為zsh
- sudo reboot 重新啟動