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 )
相关推荐
XUHUOJUN9 小时前
AKS 不是安装在 Windows Server 上,而是运行在 Windows Server 之上的 Azure 平台能力
windows·架构·k8s·azure local·azure stack
leoZ2319 小时前
Git 集成实战完全指南(四):Git 冲突解决
大数据·git·elasticsearch
Wild_Pointer.10 小时前
高效工具实战指南:Procexp64进程资源管理器
c++·windows
这是柠檬君12 小时前
Microsoft Activation Scripts(MAS)最新版!
windows·office
xinhuanjieyi12 小时前
cargo在windows系统下编译成exe,用everything搜索路径
windows·everything
IT曙光15 小时前
OpenClaw 安装与初始化指南windows
windows·openclaw
tinygone15 小时前
在Windows上部署Unlimited-ocr并提供给大模型使用
人工智能·windows·经验分享
枫荷15 小时前
Git LFS 大文件优化说明
git
WangWei_CM15 小时前
[原创][Windows C++]Winlogon 登录相关注册表值与 Notify 子键解析
windows
techdashen16 小时前
不用再反复 stash:用 Git Worktree 同时开发多个分支
大数据·git·elasticsearch