记录笔记
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


本文详细介绍如何下载并配置iTerm2作为默认终端,安装Oh-my-zsh及自定义主题,同时讲解Powerline字体、自动填充与语法高亮插件的安装步骤。
7745

被折叠的 条评论
为什么被折叠?



