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 )
相关推荐
liuhuapeng03041 小时前
GetMapping自动截取List<String>字符
数据结构·windows·list
一点事3 小时前
windows:git下载安装
git
魏 无羡3 小时前
windows 安装mysql(多个版本同时安装)
windows·mysql·adb
不说别的就是很菜5 小时前
【前端面试】Git篇
前端·git
二进制_博客5 小时前
sparksql远程服务thriftserver.sh启停脚本
bash
芳草萋萋鹦鹉洲哦12 小时前
【Windows】tauri+rust运行打包工具链安装
开发语言·windows·rust
~~李木子~~12 小时前
通过git上传项目到码云和GitHub操作手册
git·gitee·github
会跑的兔子13 小时前
Android 16 Kotlin协程 第二部分
android·windows·kotlin
hhhh明14 小时前
quest2+alvr+steamvr
linux·windows·quest2
songyuc15 小时前
【Git】请帮忙解释一下“git reset”
git·elasticsearch