配置oh-my-zsh记录

配置oh-my-zsh记录

本人在国内,因为各种原因无法直接使用官方的一键脚本

安装zsh

apt install zsh

安装oh-my-zsh

wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
chmod +x install.sh

更改一下install.sh两个地方

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

改为

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

修改主题

vim ~/.zshrc

我的主题是

ZSH_THEME="jonathan"

主题列表

更新配置

source .zshrc

插件

自动补全插件,自己看代码吧

cd ~/.oh-my-zsh/plugins
$ wget http://mimosa-pudica.net/src/incr-0.2.zsh   
source incr*.zsh
posted @ 2021-10-10 10:22  MuRKuo  阅读(52)  评论(0编辑  收藏  举报