iTerm2 是 OS X 下一款開源免費的的終端工具,我基本用它替代了原生的 Terminal。網址:http://www.iterm2.com
與Oh My Zsh一起使用
終端安裝方式:
sh
brew cask install iterm2
如果沒安裝過brew,可運行一下
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
一些基本功能如下:
1、分窗口操作:shift+command+d(橫向)command+d(豎向)
2、查找和粘貼:command+f,呼出查找功能,tab 鍵選中找到的文本,option+enter 粘貼
3、自動完成:command+; 根據上下文呼出自動完成窗口,上下鍵選擇
4、粘貼歷史:shift+command+h5、回放功能:option+command+b
6、全屏:command+enter
7、光標去哪了?command+/
8、Expose Tabs:Option+Command+E
功能還有很多,多用多體會。
Tip
cmd+, 進入preferences
- 設置主題顏色:在Profiles->Color,右下角的Color Presets選擇import...,然后導入自己的主題
- 設置字體:在Profiles->Text->Font,點擊Change Font,選擇inconsolata for powerline
- 設置懸浮Hotkey Window,在Keys中的HotKey,對下面2項都打勾即可,默認快捷鍵為option+space(iTerm啟動中)
配色方案
Cobalt2 Colour Scheme for iTerm2 + ZSH
Cobalt2主題需要先安裝字體
https://github.com/powerline/fonts