Skip to content

Instantly share code, notes, and snippets.

@jwoo92
Last active November 21, 2019 14:46
Show Gist options
  • Save jwoo92/fb540e0fdec700751242a53f61ac3fa0 to your computer and use it in GitHub Desktop.
Save jwoo92/fb540e0fdec700751242a53f61ac3fa0 to your computer and use it in GitHub Desktop.
iTerm2 Shortcut Keys

iTerm2 Shortcut Keys

Instructions

  1. iTerm2 -> Preferences (⌘ + ,)
  2. Click on Profile, select your profile, and open the “Keys” tab
  3. Add the following Global Shortcut Keys

Shortcuts

Move cursor one word left

  • Keyboard Combination: ⌥ + ←
  • Action: Send Escape Sequence
  • Esc+: b

Move cursor one word right

  • Keyboard Combination: ⌥ + →
  • Action: Send Escape Sequence
  • Esc+: f

Move cursor to beginning of line

  • Keyboard Combination: ⌥ + ↑
  • Action: Send Hex Code
  • Code: 0x01

Move cursor to end of line

  • Keyboard Combination: ⌥ + ↓
  • Action: Send Hex Code
  • Code: 0x05

Delete word

  • Keyboard Combination: ⌥ + d
  • Action: Send Escape Sequence
  • Esc+: d

Delete line

  • Keyboard Combination: ⌘ + ←Delete
  • Action: Send Hex Code
  • Code: 0x15

Undo

  • Keyboard Combination: ⌘ + z
  • Action: Send Hex Code
  • Code: 0x1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment