iTerm2+oh my zsh+powerlevel10k on Mac

1. 安装brew(可选)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. 下载安装iterm2

Downloads - iTerm2 - macOS Terminal Replacement

3. 下载安装oh-my-zsh

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

4. 下载安装字体 

https://github.com/Falkor/dotfiles/blob/master/fonts/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf

以及MesloLGS NF 

 

 参考

https://github.com/romkatv/powerlevel10k#fonts

在iterms配置中修改字体

iTerm2 → Preferences → Profiles → Text and set Font to MesloLGS NF

5. 下载安装配置自动提示

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

6. 下载安装powerlevel10k

git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

7. 语法高亮插件

cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions

8. 配置

修改 ~/.zshrc文件,找到plugin并增加插件

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

9. 配置

p10k configure

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值