iTerm2 cheat sheet

97 shortcuts in 14 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Essentials I

7 shortcuts
  • ⌘D
    Split the pane vertically
  • ⌘⇧D
    Split the pane horizontally
  • ⌘]
    Go to the next pane
  • ⌘[
    Go to the previous pane
  • ⌘⇧O
    Open Quickly
  • ⌘K
    Clear the buffer
  • ⌘F
    Find

Essentials II

7 shortcuts
  • ⌘,
    Open settings
  • ⌘G
    Find next
  • ⌘⇧G
    Find previous
  • ⌘⇧H
    Open paste history
  • ⌘⇧B
    Show the toolbelt
  • ⌘/
    Find the cursor
  • ⌘⇧A
    Select the output of the last command

Panes I

7 shortcuts
  • ⌘⌥UP
    Select the pane above
  • ⌘⌥DOWN
    Select the pane below
  • ⌘⌥⇧V
    Split vertically with a profile
  • ⌘⌥⇧H
    Split horizontally with a profile
  • ⌘⌥]
    Go to the next peer pane
  • ⌘⌥[
    Go to the previous peer pane
  • ⌘⌥W
    Close all panes in the tab

Panes II

6 shortcuts
  • ⌘^UP
    Move the divider up
  • ⌘^DOWN
    Move the divider down
  • ⌘^LEFT
    Move the divider left
  • ⌘^RIGHT
    Move the divider right
  • ⌘⌥⇧B
    Bury the session
  • ⌘⌥N
    New floating pane

Tabs I

7 shortcuts
  • ⌘⇧}
    Select the next tab
  • ⌘⇧{
    Select the previous tab
  • ⌘⌥⇧{
    Move the tab left
  • ⌘⌥⇧}
    Move the tab right
  • ⌘^⇧}
    Select the next tab group
  • ⌘^⇧{
    Select the previous tab group
  • ⌘⌥⇧T
    New tab with the current profile

Windows and sessions

7 shortcuts
  • ⌘⌥⇧N
    New window with the current profile
  • ⌘⇧S
    Save the window arrangement
  • ⌘⇧_
    Pin the hotkey window
  • ⌘O
    Open profiles
  • ⌘I
    Edit the session
  • ⌘U
    Toggle transparency
  • ⌘⇧U
    Show tabs in full screen

Find

7 shortcuts
  • ⌘⇧F
    Find globally
  • ⌘E
    Use the selection for find
  • ⌘⌥⇧E
    Clear the find
  • ⌘⌥⇧F
    Filter the output
  • ⌘⌥⇧U
    Find all smart selection matches
  • ⌘⌥⇧O
    Pick a result to open
  • ⌘J
    Jump to the selection

Marks

7 shortcuts
  • ⌘⇧M
    Set a mark
  • ⌘⇧J
    Jump to the mark
  • ⌘⇧DOWN
    Go to the next mark
  • ⌘⇧UP
    Go to the previous mark
  • ⌘⌥⇧M
    Set a named mark
  • ⌘⌥A
    Alert on the next mark
  • ⌘\
    Show annotations

Clearing and folding

7 shortcuts
  • ⌘⇧K
    Clear the scrollback buffer
  • ⌘L
    Clear to the start of the selection
  • ⌘⌥L
    Clear to the last mark
  • ⌘⌥K
    Clear instant replay
  • ⌘⇧L
    Fold the selected lines
  • ⌘⌥⇧L
    Fold all
  • ⌘⌥⇧DOWN
    Go to the next annotation

History and paste

7 shortcuts
  • ⌘;
    Open autocomplete
  • ⌘⇧:
    Open command history
  • ⌘⌥/
    Open recent directories
  • ⌘⌥B
    Start instant replay
  • ⌘⇧E
    Show timestamps
  • ⌘⌥V
    Advanced paste
  • ⌘⇧V
    Paste the selection

Copy mode

7 shortcuts
  • ⌘⇧C
    Enter copy mode
  • ⇧V
    Toggle line selection
  • ^V
    Toggle rectangular selection
  • O
    Swap the selection ends
  • Y
    Copy the selection
  • ⇧H
    Move to the top of the screen
  • ⇧G
    Move to the end

Composer and AI

7 shortcuts
  • ⌘⇧>
    Show the composer
  • ⌘⌥⇧>
    Toggle auto composer
  • ⌘Y
    Engage AI
  • ⌘⌥Y
    Explain the output with AI
  • ⌘⇧Y
    Show AI chats
  • ⌘^⇧Y
    Open an AI chat
  • ⌘⇧<
    Show the inline chat

Broadcast and tools

7 shortcuts
  • ⌘⇧I
    Broadcast input to all panes in all tabs
  • ⌘⌥⇧I
    Send input to the current session only
  • ⌘^⌥⇧I
    Toggle broadcast to the current session
  • ⌘⌥R
    Run a coprocess
  • ⌘⌥⇧R
    Stop the coprocess
  • ⌘⌥F
    Open the password manager
  • ⌘⌥S
    Toggle secure keyboard entry

View

7 shortcuts
  • ⌘⌥;
    Show the cursor guide
  • ⌘⌥G
    Show the session note
  • ⌘⌥Z
    Zoom in on the selection
  • ⌘-
    Make the text smaller
  • ⌘0
    Make the text normal size
  • ⌘S
    Save the selected text
  • ⌘⌥O
    Open the selection
Achievement unlocked