type
status
date
slug
summary
tags
category
icon
password
整容前:

整容后:

本篇以 Linux 服务器为例
- 安装 Oh My Zsh
- 执行:
sh -c "$(curl -fsSL <https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh>)" - 安装完之后是这样

安装插件的方式有很多,这里使用了Zplug
- 安装ZPlug然后
source .zshrc,会提示安装插件,如果没有可以手动执行zplug install然后根据终端提示配置p10k. - 执行
curl -sL --proto-redir -all,https <https://raw.githubusercontent.com/zplug/installer/master/installer.zsh> | zsh - 安装完之后编辑
.zshrc文件.vi ~/.zshrc首先导入zplug:source ~/.zplug/init.zsh
主题有很多,这里我们使用P10Kp10k 要求 zsh 最低版本 5.1, 具体办法自己搜,需要注意卸载老版本的zsh之后安装新的之前可能会导致密码登录服务器报错
在
zshrc文件里加入:
配置完就可以了
- Mac 端安装方法类似,更简单, Mac 推荐使用 Iterm2代替终端 令分享一些插件:
- 作者:Vitta
- 链接:https://tangly1024.com/article/8be4750b-2ace-40cc-8e4b-f8332f5f9a53
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
![[Mac/Linux] 终端美化 + Oh My Zsh](/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimages%2Fpage-cover%2Fnasa_robert_stewart_spacewalk_2.jpg&w=3840&q=75)
