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 )
相关推荐
weixin_489690022 分钟前
MicroSIP自定义web拨打协议
服务器·前端·windows
yuanmenghao4 分钟前
Linux 配置Samba,Windows登录,开机自动映射登录
linux·运维·windows·操作系统·samba
晴天飛 雪22 分钟前
Spring Boot 接口耗时统计
前端·windows·spring boot
凡客丶36 分钟前
Windows版Miniconda打包环境迁移到内网离线环境【详解】
windows·python
小-黯1 小时前
QT编译MySQL驱动教程(Windows/Linux)
windows·qt·mysql
数智工坊1 小时前
【操作系统-处理器调度】
java·linux·服务器·windows·ubuntu
兰舟比特1 小时前
【Git专栏】Git中常用撤回add和commit的指令
git
amazing-yuan1 小时前
Windows系统查看是否已安装Mysql,查找Mysql的安装地址,忘记root账号的密码时重置密码操作指引
数据库·windows·mysql
cur1es2 小时前
【IO与文件及存储常识】
windows·io·文件系统·存储·file·硬盘·文件常识
无限进步_2 小时前
C语言实现贪吃蛇游戏完整教程【最终版】
c语言·开发语言·c++·git·游戏·github·visual studio