iTerm2 - abigure/personal-settings GitHub Wiki
Preferences
General
- 勾選 Allow clipboard access to terminal apps (允許某些預設無法 copy 的程式也可 copy, 如 tmux)
- 取消 Confirm closing multiple sessions (多 tabs 關閉時不警告,但保留
cmd+Q的警告)
Appearance
- 取消 Hide tab bar when there is only one tab
- Dimming amount 調小一點,大概 10% 的位子
- 勾選 Dimming affects only text, not background.
Profiles
Profiles > General
- 選擇 Reuse previous session's directory
Profiles > Colors
下載並匯入 Tomorrow Night Bright.itermcolors
- 從 Load Presets... 下拉選單中選擇 Tomorrow Night Bright (如果只用內建的,可用 Tango Dark)
Profiles > Text
參考 Fonts 安裝 Source Code Pro
- Source Code Pro 13 pt
- Columns 100 x Rows 30
Profiles > Window
- Transparency 調到大約 5%~10%
- Columns 調到 100
- Rows 調到 30
Profiles > Terminal
- Scrollback Lines 調到 10,000
Profiles > Keys
- 刪除
option+←(因為會跟下一節要新增的快速鍵衝突所以要砍掉) - 刪除
option+→
Keys
- 新增
cmd+shift+ (↑/↓/←/→) : Select Split Pane on (Above / Below / Left / Right) - 新增
option+←:Send Escape Sequence > 填入 b (往前跳一個 word) (此行為可能要重開 iTerm 才會生效) - 新增
option+→:Send Escape Sequence > 填入 f (往後跳一個 word) - 修改
cmd+←:Send Hex Code > 填入 0x01 (跳到行首) - 修改
cmd+→:Send Hex Code > 填入 0x05 (跳到行尾) - 新增
F9:Send Text > 填入next\n(pry debug 時使用)