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