Iterm2

1) 配置

1.1) 安装"oh-my-zsh"

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

1.2) 更改主题

vi ~/.zshrc
ZSH_THEME="robbyrussell"修改为ZSH_THEME="agnoster"

1.3) 下载安装Powerline字体

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh

1.4) 修改Iterm2字体

将Iterm2的字体设置为Powerline

2) 快捷键

切换全屏

command + enter

垂直分屏

command + d

搜索命令历史

ctrl + r

清除当前行

ctrl + u

到行首

ctrl + a

到行尾

ctrl + e

删除光标之前的单词

ctrl + w

删除到文本末尾

ctrl + k

清屏

command + r

原文地址:https://www.cnblogs.com/yuzhen233/p/8450461.html