MacOS下ohmyzsh安装

1.国内下载镜像:

sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

2.下载主题(powerlevel9k):

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

安装主题(powerlevel9k):

根目录下.zshrc文件修改:

ZSH_THEME="powerlevel9k/powerlevel9k"

3.下载主题字体(powerline):

git clone https://github.com/powerline/fonts.git --depth=1

安装字体:

cd fonts
./install.sh

更改字体:

iterm2->Preferences->Profiles->Text->Font,选择Inconsolata for Powerline

更改配色:

iterm2->Preferences->Profiles->Colors->Solarized Dark

4.下载安装:

zsh-syntax-highlighting:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

zsh-autosuggestions:

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

安装插件

根目录下.zshrc文件修改:
plugins=(
	git
	zsh-syntax-highlighting
	zsh-autosuggestions
	)

TIPS

如遇git clone超时问题,可尝试在github.com前增加gitclone.com/,例如

git clone https://gitclone.com/github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值