mac终端优化改造

下载iterm2地址

https://www.iterm2.com/


升级macOS Catalina后,默认启用zsh,不用单独安装。

安装oh my sh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

安装PowerLine
sudo easy_install pip
pip install powerline-status --user

安装PowerFonts(NOTO MONO最喜欢)
git clone https://github.com/powerline/fonts.git --depth=1
./install.sh
  • 之后去iTerm2设置字体

语法高亮
  • 进入plugins目录(隐藏)
cd ~/.oh-my-zsh/custom/plugins/
  • git下来插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
  • 编辑zshrc文件启用插件,添加插件名称,如下图:

在这里插入图片描述

  • source ~/.zshrc

语法补全
  • 同样进入插件目录git下来
git clone https://github.com/zsh-users/zsh-autosuggestions
  • 后面方式同语法高亮

git 提示有了,tab超级爽

在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值