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 )
相关推荐
RainingTime1 小时前
新版IDEA使用传统用户名、密码登录Git
git
molaoye2 小时前
Windows修改系统环境变量不需要重启电脑之骚操作
windows
wling030111 小时前
vasp虚频计算-python脚本
开发语言·windows·python·vasp计算
DevangLic11 小时前
【诡异的空文件夹 和 git:冲突合并】最新的尝试
git
舒一笑13 小时前
Windows + WSL2 完整复现 Avernet WAIC 6 Bot 协作演示
人工智能·git·开源
在世修行17 小时前
Windows 上 Docker Desktop 部署 MySQL + TDengine 全过程(含 WSL 报错与镜像加速排障实战)
windows·mysql·docker·tdengine
生戎马 平安京策19 小时前
git寻根——^和~的区别
git
技术小结-李爽19 小时前
【工具】git远程分支合并
git·gitee
Richard.Wong20 小时前
Windows IIS 服务器部署 Vue3 前端项目详细流程
服务器·前端·windows
RootKai20 小时前
Git命令与基本使用流程
git