..

Home brew &oh-my-zsh&语法高亮&自动补全&powerlevel10k

Home brew &oh-my-zsh&语法高亮&自动补全&powerlevel10k

安装Home brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

更新zsh

brew install zsh

安装oh-my-zsh

oh-my-zsh

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

安装oh-my-zsh插件

语法高亮插件

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

语法自动建议插件

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

配置两个插件vi .zshrc

plugins=( zsh-syntax-highlighting zsh-autosuggestions )

更新.zshrc

source ~/.zshrc

powerlevel10k

安装

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

配置

ZSH_THEME="powerlevel10k/powerlevel10k"

重新配置

p10k configure

参考自https://www.cnblogs.com/himonkey/p/11853487.html#