MAC系统上iterm2安装过程

下载安装

http://iterm2.com/

设置ITerm为默认终端

点击左上角iTerm2,然后点击Make iTerm2 Default Term

安装oh-my-zsh,查看系统有几个shell

$ cat /etc/shells

设置默认 shell

$ chsh -s /bin/zsh

使用crul安装

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

修改主题
打开隐藏文件

$ vim ~/.zshrc

修改主题为:af-magic
修改代码ZSH_THEME=“af-magic”

配置编码
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

设置自动提示命令和语法高亮

克隆仓库到本地 ~/.oh-my-zsh/custom/plugins 路径下
$ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
$ git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
$ vim ~/.zshrc

修改为plugins=( git zsh-autosuggestions zsh-syntax-highlighting)
$ source ~/.zshrc

重新打开终端窗口

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值