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 )
相关推荐
iceslime7 分钟前
Windows10系统静音修复相关
windows·音频·修复
humors22113 分钟前
AI工具合集,不定期更新
人工智能·windows·ai·工具·powershell·deepseek
Echo-J20 分钟前
在 Windows 7 虚拟机上安装 VMware Tools 时遇到驱动无法安装的问题
windows
牢七2 小时前
无境靶场练习一(失败)
git
sR916Mecz6 小时前
pache Hop实战:Windows平台MySQL数据迁移的深度排错与性能调优
数据库·windows·mysql
HuaCode6 小时前
Openclaw一键安装部署(2026年4月最新)
git·python·nodejs·openclaw·api token
小白电脑技术7 小时前
Windows家庭版开启原生远程桌面
windows
扑火的小飞蛾7 小时前
Windows 10 与 Kali Linux SSH 免密互信配置指南
linux·windows·ssh
Chris _data9 小时前
从宿主机(Windows)通过 NAT 模式连接虚拟机(Ubuntu)中的 MySQL
windows·mysql·ubuntu
IMPYLH9 小时前
Linux 的 logname 命令
linux·运维·服务器·bash