随笔 - 9  文章 - 0 评论 - 0 阅读 - 842
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

安装zsh
sudo apt install zsh

切换默认shell为zsh
chsh -s /bin/zsh

执行以下命令安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

创建zsh配置文件~/.zshrc
zsh-autosuggestions

安装高亮插件 zsh-syntax-highlighting
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安装提示插件 zsh-autosuggestions
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

然后打开zsh配置文件
vim ~/.zshrc

启用插件
找到plugins=(git)
修改为启用插件plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)
更换主题 修改 ZSH_THEME="(这里选择主题名)"
保存退出
执行source ~/.zshrc
完成美化

posted on   hongweiwang408  阅读(107)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示