Mac Iterm2美化,安装oh-my-zsh

安装oh-my-zsh

curl安装方式

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

wget安装方式

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

设置主题

然后从Preferences>Profiles>Default>Colors,找到右下角修改主题的地方,选择一个主题

设置后的效果:

安装Powerline字体

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

字体设置,从Preferences>Profiles>Default>Text修改字体,选择Powerline的字体

安装brew命令

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

安装语法高亮插件

brew install zsh-syntax-highlighting

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

安装自动补全插件

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

安装完成后,然后打开vim ~/.zshrc,找到plugins位置修改为以下内容。

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

在文件末尾添加以下内容:

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zs

插件安装配置完成后,重启终端

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值