Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@Auios
Last active November 12, 2024 15:32
Show Gist options
  • Save Auios/6e862766c7ffd907f25fb6387e718e62 to your computer and use it in GitHub Desktop.
Save Auios/6e862766c7ffd907f25fb6387e718e62 to your computer and use it in GitHub Desktop.
Making iTerm2 More Familiar

1. Configure Basic Key Bindings for Familiarity

  1. From the iTerm2 menu, go to Settings.

  2. Select the Profiles tab.

  3. Head to the Keys section.

  4. This will make common editing shortcuts work as expected.

    Natural Text Editing in iTerm2


2. Customize Option+Backspace to Delete a Whole Word

By default, iTerm2 treats Option+Backspace differently than Windows Terminal. To make it delete a single word at a time:

  1. In the Keys section, click the + button.

  2. For Keyboard Shortcut, press Option+Backspace.

  3. Choose Send Hex Code from the dropdown.

  4. In Hex Code, input 0x1b 0x08.

    Now, pressing Option+Backspace will delete the previous word instead of the entire line.

    Option+Backspace Setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment