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 )
相关推荐
Devil_MayCare19 分钟前
0x80096005 时间戳签名和/或证书无法验证或已损坏(解决办法)
windows
qqxhb19 分钟前
04|最小工程素养:文件、命令行、依赖、环境变量、Git
git·环境·依赖·工程·项目结构
深巷wls1 小时前
Openclaw部署+飞书接入(windows环境)
windows·飞书·openclaw
python_DONG2 小时前
Windows 原生 + 原生 Ollama + 官方 OpenClaw 2026.3.11-beta.1推荐部署方案
windows
孟郎郎2 小时前
OpenClaw 如何更换本地模型基础教程
windows·ai·机器人·ollama·openclaw·小龙虾
love530love4 小时前
OpenClaw搭配LM Studio VS Ollama:Windows CUDA实战深度对比与完全配置指南
人工智能·windows·vllm·ollama·llama.cpp·lm studio·openclaw
国家二级编程爱好者4 小时前
删除typora文档没有引用的资源文件
git·python
yuweiade6 小时前
Redis服务安装自启动(Windows版)
数据库·windows·redis
fjhcom6 小时前
OpenClaw 完整部署教程(Windows + Ollama)
windows·ollama·openclaw
喵叔哟7 小时前
6. 【Blazor全栈开发实战指南】--组件通信与共享状态
linux·网络·windows