mac终端iterm2+oh-myzsh+powerlevel10k
1、下载iterm2
直接官网下载
https://iterm2.com/downloads.html
2、安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
这是国外的库,也可以国内找下载源,也可以直接运行install.sh的内容
3、安装powerlevel10k和一些便捷插件
cd ./.oh-my-zsh/themes
git clone https://github.com/romkatv/powerlevel10k.git
vi ~/.zshrc 设置如下内容 使用p10k主题 ZSH_THEME=“powerlevel10k/powerlevel10k”
# 高亮
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
# 自动补全
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-autosuggestions
在.zshrc中添加插件
plugins=(
zsh-syntax-highlighting
zsh-autosuggestions
)
后source .zshrc
就可以根据p10k的引导进行配置啦