zoukankan      html  css  js  c++  java
  • windows使用on my zsh

    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


  • 相关阅读:
    HUD--2553 N皇后问题
    poj--2139
    poj--2236
    poj--2229
    poj--2376 Cleaning Shifts
    poj--3669
    poj--1979 Red and Black
    poj--1258
    经典DP问题--poj1088滑雪
    Poj 1041--欧拉回路
  • 原文地址:https://www.cnblogs.com/asablog/p/14381655.html
Copyright © 2011-2022 走看看