windows使用on my zsh

2021-03-01 09:27

阅读:420

标签:hub   进入   部分   仓库   repo   开发者选项   系统   tin   mic   

1、打开windows10系统开发者选项

2、进入控制面板,打开程序、程序和功能、启用或关闭windows功能,选中适用于linux的windows子系统

3、进入microsoft store,搜索linux,点击第一个出现的ubuntu,进行安装

4、打开安装好的ubuntu系统,设置好username和password

5、打开桌面,按住shift和鼠标右键,选择在此处打开linux shell

6、打开linux shell,输入sudo apt-get install -y zsh,回车,如果出现密码则输入刚才linux系统创建时的密码

7、输入zsh,进入zsh

8、输入 wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh

9、输入vi install.sh

10、找到以下部分.

# Default settings

ZSH=${ZSH:-~/.oh-my-zsh}

REPO=${REPO:-ohmyzsh/ohmyzsh}

REMOTE=${REMOTE:-https://github.com/${REPO}.git}

BRANCH=${BRANCH:-master}

11、找到

REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}

12、替换为

REPO=${REPO:-mirrors/oh-my-zsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}

13、按下esc,输入:wq,回车

14、输入sh install.sh

15、出现安装进度条,以及是否将oh my zsh设置为默认shell,选择是

16、修改仓库地址

cd ~/.oh-my-zsh
git remote set-url origin https://gitee.com/mirrors/oh-my-zsh.git
git pull

windows使用on my zsh

标签:hub   进入   部分   仓库   repo   开发者选项   系统   tin   mic   

原文地址:https://www.cnblogs.com/asablog/p/14381655.html


评论


亲,登录后才可以留言!