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 )
相关推荐
wflynn3 小时前
GitHub 今日推荐|open_scion:为AI代理设计的并发版本控制
git·开源·go·github·agent·coding-agents
情 九3 小时前
Dify 本地环境搭建教程:macOS / Windows
windows·macos
初願致夕霞3 小时前
Git 指南
大数据·git·elasticsearch
Escalating_xu5 小时前
【Linux 网络编程】Windows 客户端访问 Linux:用 Winsock 跑通 UDP 回显
linux·网络·windows
biaov5 小时前
使用 Windows 自带的 VHDX + BitLocker 加密学习资料
windows·加密
三块一毛四5 小时前
set_global_opts / set_series_opts 参数
windows
qetfw5 小时前
Bash 内置与外部命令:type、command 与 builtin 验证
linux·开发语言·bash
爱喝热水的呀哈喽6 小时前
cxmt research
git
爱喝热水的呀哈喽6 小时前
概论research
git
jack1868914 小时前
百度 AI 搜索实战:从精准获客到智能决策的应用全景
windows