WSL2子系统下ubuntu18.04安装oh-my-zsh

WSL2子系统下ubuntu18.04安装oh-my-zsh

  1. sudo apt-get install zsh
  2. 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

  1. chsh -s /bin/zsh 将默认的shell从bash改为zsh
  2. sudo reboot 重新启动
posted @ 2021-10-26 09:24  夜空中最暗的星  阅读(319)  评论(0编辑  收藏  举报