一、安装
- 安装切换
shell的工具、zsh
1 | sudo dnf install -y util-linux-user zsh |
- 切换
zsh
1 | chsh -s $(which zsh) |
二、oh-my-zsh
-
安装
curl
1 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
wget
1 | sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" |
- 安装主题
1 | git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k |
- 安装插件
- zsh-autosuggestions自动补全插件
1 | git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
- zsh-syntax-highlighting语法高亮插件
1 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
- 启用主题和插件
1 | # 启用主题 |
- 配置自定义的设置
1 | p10k configure |
会一次问一堆问题:
- 能否看到某个图形
- 选择某种样式
- …
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 一世贪欢的私域!
评论





