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 )
相关推荐
小哈里21 小时前
【工具】Linux远程开发核心工具,Git命令缩写与SSH常用命令
linux·git·ssh·工具·远程开发
dingdingfish1 天前
Bash学习 - 第8章:Command Line Editing,第3节:Readline Init File
bash·init·bind·readline
njsgcs1 天前
langchain+vlm示例
windows·python·langchain
tiandyoin1 天前
找到系统设置对应的注册表项
windows·注册表·系统设置·systemsettings
liulun1 天前
C++ WinRT中的异步
c++·windows
迈克桀森1 天前
Git 日常操作全攻略:拉取 / 提交代码 + 高频命令速查
git·github
xyty33201 天前
QImageReader 的全局静态锁原理
c++·windows·qt
Bruce_Liuxiaowei1 天前
深入剖析 Windows 网络服务:用 witr 一键溯源所有监听端口
windows·安全·系统安全
CCC:CarCrazeCurator1 天前
详解文件与文件夹权限:谁能操作、能做什么
git
Delta-delta1 天前
Git:warning: Clone succeeded, but checkout failed.
git