Windows通过git-bash安装zsh

Windows通过git-bash安装zsh

1、安装git-bash

官网下载安装

2、下载windows版zsh

百度网盘下载 提取码: s84k
官网下载安装

  • 注意官网下载需要解压两次
  • 将解压两次后得到的文件,放在git根目录下

3、配置zsh

1. 配置.bashrc默认启动zsh
  • 配置完成后重新打开终端即可体验zsh了

  • 命令行输入zsh,然后输入0.表示创建.zshrc配置文件

bash 复制代码
# 配置默认启动zsh
vim ~/.bashrc
if [ -t 1 ]; then
  exec zsh
fi
2. 配置oh-my-zsh(windows下加载这个会卡顿一两秒)
bash 复制代码
# 下面仓库都是我fork的gitee地址
# 安装oh-my-zsh
sh -c "$(curl -fsSL https://gitee.com/yyl-code/ohmyzsh/master/tools/install.sh)"
# 安装命令行提示和高亮
cd ~/.oh-my-zsh/custom/plugins
git clone https://gitee.com/yyl-code/zsh-autosuggestions.git
git clone https://gitee.com/yyl-code/zsh-syntax-highlighting.git
bash 复制代码
# .zshrc插件里面加入这两个
vim ~/.zshrc

plugins=(git zsh-autosuggestions zsh-syntax-highlighting )
相关推荐
搬砖的小码农_Sky3 小时前
AI Agent:如何处理Claude Code 最近版本(2026年更新)引入的模型上下文限制
人工智能·windows·ai·ai编程
kakakahahahaha4 小时前
Windows C盘临时文件清理:%temp%、Windows Temp、Prefetch、Windows.old与hiberfil.sys处理指南
c语言·开发语言·windows
山岚的运维笔记7 小时前
ComfyUI NVIDIA安装教程:官方便携版下载+run_nvidia_gpu.bat启动,8G显存Windows实操
运维·服务器·windows·笔记·prompt·aigc·comfyui
kakakahahahaha9 小时前
LoadLibrary failed with error 87 排查:ERROR_INVALID_PARAMETER、DLL路径、架构与显卡驱动
windows·电脑·笔记本电脑·nvidia·软件需求
百事牛科技11 小时前
7Z分卷文件怎么打开?7-Zip解压方法详解
windows·7-zip
寺中人12 小时前
Xshell 完全入门指南:从安装到实战,远程连接+文件传输+会话管理全拆解
git·ssh·github·php·远程连接·xshell·运维工具
酬谢神明则必安13 小时前
git学习记录01
linux·git·学习
lingchen190613 小时前
版本控制 Git源代码项目管理
git
虫无涯13 小时前
Coverity 如何结合 GJB8114-2013使用?
git·单元测试·嵌入式测试·coverity·静态扫描
2301_7893804915 小时前
【踩坑记录】Windows资源管理器无限重启,改注册表、看日志
windows·经验分享·笔记