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 )
相关推荐
kcuwu.1 小时前
Python进阶:生成器与协程,高效并发编程的核心实践
windows·python·php
2401_835792542 小时前
FastAPI 速通
windows·python·fastapi
easyboot3 小时前
Visual Studio 2026安装Avalonia
ide·windows·visual studio
IMPYLH4 小时前
Linux 的 ls 命令
linux·运维·服务器·bash
逻极7 小时前
Windows平台Ollama AMD GPU编译全攻略:基于ROCm 6.2的实战指南(附构建脚本)
人工智能·windows·gpu·amd·ollama
zh_xuan8 小时前
Android Paging 3实现分页加载
android·git·github·paging 3
ApjRvH3vg8 小时前
.NET 10 打造 OpenClaw Windows Node
windows·.net
水饺编程9 小时前
第4章,[标签 Win32] :SysMets3 程序讲解04,垂直滚屏重绘
c语言·c++·windows·visual studio
sinat_255487819 小时前
泛型:超级、扩展、列表·学习笔记
java·windows·学习·算法
水饺编程9 小时前
第4章,[标签 Win32] :SysMets3 程序讲解05,水平滚动
c语言·c++·windows·visual studio