iTerm2

下载iTerm2

记录笔记

0 go2Shell设置iTerm2为默认终端

去App Store中下载安装,编辑自定义工具–>>拖进去

点击iTerm2 设置如下:

输入终端命令:open -a Go2Shell --args config

1、安装Oh my zsh

安装方法有两种 curl或wget:

 #curl 安装方式
 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#wget 安装方式
sh -c "$(wget `在这里插入代码片`https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

我们编辑vim ~/.zshrc文件,将主题配置修改为ZSH_THEME=“agnoster”(是比较常用的 zsh 主题之一)

注意这个安装完后会出现乱码现状,需要进行如下安装

2、安装PowerLine

首先先安装pip命令:

sudo easy_install pip 「pip是python的一个维护命令」

安装powerline:

pip install powerline-status --user
3、安装PowerFonts

在常用的位置新建一个文件夹,如:~/Desktop/OpenSource/
在OpenSource文件夹下下载PorweFonts:

# clone
$ git clone https://github.com/powerline/fonts.git --depth=1
# install
$ cd fonts
./install.sh
# clean-up a bit
$ cd ..
$ rm -rf fonts

然后去设置如下

到了这一步基本上是安装完成,如还需要自动填充、高亮等如下:

1、自动填充(先下载git 到指定文件夹中)

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

然后编辑vim ~/.zshrc文件,
找到plugins配置,增加zsh-autosuggestions插件。
生效命令:source ~/.zshrc


2、高亮

brew install zsh-syntax-highlighting

安装成功之后,编辑vim ~/.zshrc文件,在最后一行增加下面配置:
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
生效命令:source ~/.zshrc

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值