oh-my-zsh国内源安装及配置
介绍
国内源的oh-my-zsh库,对代码中的相关网址进行了替换(已在下面列出),以实现:
- 和原官方一样,使用命令在线安装(无需克隆到本地);
- 支持后期自动升级(对照本仓)。
基本上每个月还是会更新,代码仓库地址:
https://gitee.com/pocmon/ohmyzsh
安装
1.首先确保zsh的安装
sudo apt install git zsh -y
2.然后使用curl或者wget工具进行在线安装
- 使用 curl 安装
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
- 使用 wget 安装
sh -c "$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
插件
- zsh-syntax-highlighting
git clone https://gitee.com/asddfdf/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- zsh-autosuggestions
git clone https://gitee.com/chenweizhen/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
配置
- 配置.zshrc
source .zshrc
2.主题
ZSH_THEME="agnoster"
(很多主题使用powerline font
sudo apt-get install fonts-powerline
)
3.插件
plugins=( #other zsh-syntax-highlighting zsh-autosuggestions)
4.起用
source .zshrc
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 周边上新:园子的第一款马克杯温暖上架
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
· 使用C#创建一个MCP客户端