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 )
相关推荐
Irissgwe6 小时前
第 5 篇:Git 分支基础:branch、checkout、merge 和冲突解决
git
love530love6 小时前
用自然语言让 AI Agent 卸载软件 —— 以卸载 Visual Studio 2026 为例
ide·人工智能·windows·agent·visual studio·ai agent·marvis
Yang_jie_036 小时前
笔记:数据结构(顺序表)
数据结构·windows·笔记
liberalhumblehopeful8 小时前
git代码管理-分支差距过大如何进行同步
git
hai3152475438 小时前
九章空间几何对照直译法:通用芯片 / 定制专用芯片 编译适配规则
linux·汇编·bash
三十岁老牛再出发10 小时前
07.07.每日总结
c语言·windows·python
nianniannnn12 小时前
c++复习自存--标准模板库STL
开发语言·c++·windows
2601_9637713713 小时前
Optimizing Logistics and Transportation Sites on WordPress
前端·数据库·windows·php
一只楚楚猫13 小时前
一篇文章入门Git工具
git
Java面试题总结13 小时前
C# 源生成器使用方法
windows·ui·c#