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 )
相关推荐
Eiceblue2 分钟前
.NET框架下Windows、Linux、Mac环境C#打印PDF全指南
linux·windows·.net
Greg_Zhong25 分钟前
Git建立本地与远程仓库的连接,简洁版
git·本地与远程连接
skywalk816330 分钟前
Windows 下常见的 开源输入法(IME)
windows·开源·输入法
yingdonglan36 分钟前
鸿蒙跨端Flutter学习——GridView高级功能
linux·运维·windows
JAVA+C语言1 小时前
多主机 TCP 通信
网络·windows·tcp/ip
小猪咪piggy2 小时前
【工具】Git 和小乌龟安装与使用
git
二进制coder3 小时前
Git 实操:已Push的Commit能否重新Push?答案与规范全解析
git
比奇堡鱼贩3 小时前
python第二次作业--函数
linux·运维·windows
小白郭莫搞科技5 小时前
鸿蒙跨端框架Flutter学习:ListView卡片样式详解
linux·服务器·windows
九皇叔叔6 小时前
【05】SpringBoot3 MybatisPlus 添加(Mapper)
windows