Skip to content

Instantly share code, notes, and snippets.

@mikemcduffie
Forked from squarism/iterm2.md
Created September 1, 2025 07:55
Show Gist options
  • Save mikemcduffie/08a642c2befe5bd7bb7473a6f239b64d to your computer and use it in GitHub Desktop.
Save mikemcduffie/08a642c2befe5bd7bb7473a6f239b64d to your computer and use it in GitHub Desktop.
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
previous tab ⌘ + left arrow
next tab ⌘ + right arrow
go to tab ⌘ + number
go to window ⌘ + Option + Number
go to split pane by direction ⌘ + Option + arrow
go to split pane by order of use ⌘ + ] , ⌘ + [
split window horizontally (same profile) ⌘ + D
split window vertically (same profile) ⌘ + d
split window horizontally (new profile) Option + ⌘ + H
split window vertically (new profile) Option + ⌘ + V
Set Mark ⌘ + M
Jump to Mark ⌘ + J

Basic Moves

Function Shortcut
Move back one character Ctrl + b
Move forward one character Ctrl + f
Delete current character Ctrl + d
Delete previous character Backspace
Undo Ctrl + -

Moving Faster

Function Shortcut
Move to the start of line Ctrl + a
Move to the end of line Ctrl + e
Move forward a word Meta + f
Move backward a word Meta + b
Clear the screen Meta + l

Cut and Paste

Function Shortcut
Cut from cursor to the end of line Ctrl + k
Cut from cursor to the end of word Meta + d
Cut from cursor to the start of word Meta + Backspace
Cut from cursor to previous whitespace Ctrl + w
Paste the last cut text Ctrl + w
Loop through and paste previously cut text Meta + y
Loop through and paste the last argument of previous commands Meta + .

Search the Command History

Function Shortcut
Search as you type. Ctrl + r and type the search term; Repeat Ctrl + r to loop through result
Search the last remembered search term Ctrl + r twice
End the search at current history entry Ctrl + y
Cancel the search and restore original line Ctrl + g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment