Guide

1. wsl2下安装

# 更新源
$ sudo apt update
# 安装Zsh
sudo apt install zsh -y
# 安装OhMyZsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 查看可用shell
cat /etc/shells
# 设置zsh为默认shell
chsh -s $(which zsh)
# 查看当前shell
echo $SHELL

2. 配置

# 编辑配置
vim ~/.zshrc
Copyright © gendloop 2024 all right reserved,powered by Gitbook该文件修订时间: 2026-02-10 13:48:53

results matching ""

    No results matching ""