Skip to content

Instantly share code, notes, and snippets.

@tuergeist
Forked from aklap/iterm2.md
Last active June 29, 2018 06:03
Show Gist options
  • Save tuergeist/4726423d0fc9cfe6c75a7b2bacfd684e to your computer and use it in GitHub Desktop.
Save tuergeist/4726423d0fc9cfe6c75a7b2bacfd684e to your computer and use it in GitHub Desktop.
iTerm2 cheatsheet

iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Window + n
Go to Window Option + + Number
Fullscreen + Enter
Fullscreen current split pane Shift + + Enter
New Tab + t
Go to Tab + Number
Previous Tab + Left Arrow
Next Tab + Right Arrow
Exposé Tabs incl Search Option + + e
Split Window Horizontally (same profile) Shift + + d
Split Window Vertically (same profile) + d
Split Window Horizontally (new profile) Shift + Option + + h
Split Window Vertically (new profile) Shift + Option + + v
Go to Split Pane by Direction Option + + Arrow
Go to Split Pane by Order of Use + ] , + [
Close current tab (or splitted part) Option + w example here
Close ALL tabs Shift + Option + w
Undo close (within 5s) + z
Set Mark Shift + + m
Jump to Mark Shift + + 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

Moving Faster

Function Shortcut
Move to the start of line Ctrl + a
Move to the end of line Ctrl + e
Move forward a word Option + f
Move backward a word Option + b

Cut, Copy and Paste

Function Shortcut
Undo Ctrl + -
Clear the screen + k or Ctrl + l
Show paste history Shift + + h

Delete from cursor to the end of line | Ctrl + k Copy from cursor to the start of word | Option + Backspace Copy from cursor to previous whitespace | Ctrl + w Paste the last copied text | Ctrl + w Loop through and paste previously copy text | Option + y Loop through and paste the last argument of previous commands | Option + .

General Command Line Helpers

Function Shortcut
Auto-Completion hints Ctrl + ;
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

Other stuff

Function Shortcut
Instant replay for a window Option + + b
Navigate in replay Left Arrow, Right Arrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment