- iTerm2 -> Preferences (⌘ + ,)
- Click on Profile, select your profile, and open the “Keys” tab
- Add the following Global Shortcut Keys
- Keyboard Combination:
⌥ + ←
- Action: Send Escape Sequence
- Esc+: b
- Keyboard Combination:
⌥ + →
- Action: Send Escape Sequence
- Esc+: f
- Keyboard Combination:
⌥ + ↑
- Action: Send Hex Code
- Code: 0x01
- Keyboard Combination:
⌥ + ↓
- Action: Send Hex Code
- Code: 0x05
- Keyboard Combination:
⌥ + d
- Action: Send Escape Sequence
- Esc+: d
- Keyboard Combination:
⌘ + ←Delete
- Action: Send Hex Code
- Code: 0x15
- Keyboard Combination:
⌘ + z
- Action: Send Hex Code
- Code: 0x1f