博客 / 詳情

返回

在win11上使用wsl2安裝zsh 和 oh-my-zsh

原文發佈在:http://humblelei.com/posts/in...

安裝前準備環境

# 更新軟件包列表
sudo apt update

#升級所有已安裝的程序包
sudo apt upgrade

#安裝下面的軟件包
sudo apt install wget
sudo apt install git 

安裝zsh

sudo apt install zsh

安裝 oh-my-zsh

sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# 如果打不開github可以使用gitee鏡像安裝 sh -c "$(wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -O -)"

# 安裝完成後,可以打開 ~/.zshrc 修改配置
vim ~/.zshrc
user avatar
0 位用戶收藏了這個故事!

發佈 評論

Some HTML is okay.