Skip to content

Instantly share code, notes, and snippets.

@GuyHarwood
Created June 6, 2018 09:58
Show Gist options
  • Save GuyHarwood/f94c194048c30a5997c128b595fdfa32 to your computer and use it in GitHub Desktop.
Save GuyHarwood/f94c194048c30a5997c128b595fdfa32 to your computer and use it in GitHub Desktop.
Mac Setup

install iterm configure iterm to pick up settings file from iCloud install homebrew install zsh install zpresto

iterm key bindings

In OSX, ⌥+⌫ and ⌘+⌫ are the shortcuts for deleting a word and deleting a line respectively. ⌘+ ← and ⌘+ → are for going to the beginning and end of lines. By default, iTerm2 isn't configured this way, and there are a lot of misleading guides online. The following is what I've found to work on my machine.

Open the preferences (⌘+,) and go to the Keys tab. Add a global shortcut key, and just type in your shortcut In the Action dropdown, select Send Hex Code The hex codes for...

Deleting a word: 0x17. Deleting a line: 0x15. Moving to the beginning of the line: 0x01. Moving to the end of the line: 0x05. Just open a new tab, and it should work!

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