Skip to content

Instantly share code, notes, and snippets.

@xiangaoole
Last active September 14, 2020 07:50
Show Gist options
  • Save xiangaoole/b6ffe7c4e1e077fe525101f5f32e57b4 to your computer and use it in GitHub Desktop.
Save xiangaoole/b6ffe7c4e1e077fe525101f5f32e57b4 to your computer and use it in GitHub Desktop.
The cheatsheet to use iTerms shell more conveniently

iTerms shell cheatsheet

These are some that you need to add to key bindings:

Preference -> Profile -> Keys -> add new Key Mappings

Explain Combination Action
delete entire line + backspace "Send Hex Codes: 0x15"
delete backward word + backspace "Send Hex Codes: 0x17"
move cursor to line head + ⬅️ "Send Hex Codes: 0x01"
move cursor to line end + ➡️ "Send Hex Codes: 0x05"
move cursor to backward word + ⬅️ "Send Escape Seqence:b"
move cursor to forward word + ➡️ "Send Escape Seqence:f"

These are some of iTerms cheatsheet:

Explain Key Combination
show paste history + + h
search in cmd history ctl + r
delete from cursor to end ctl + k
clear the window ctl + l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment