Skip to content

Instantly share code, notes, and snippets.

@afair
Last active June 3, 2024 23:26

Revisions

  1. afair revised this gist May 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tmux.cheat
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    ========================================== ==========================================

    List tmux ls List ^b w
    New -s <session> Create ^b c
    New new -s <session> Create ^b c
    Attach att -t <session> Rename ^b , <name>
    Rename rename-session -t <old> <new> Last ^b l (lower-L)
    Kill kill-session -t <session> Close ^b &
  2. afair revised this gist Nov 15, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions tmux.cheat
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ Kill kill-session -t <session> Close ^b &
    Choose ^b w <name>
    Detach ^b d
    List ^b = ==========================================
    Buffer ^b <PgUpDn> PANE
    Buffer ^b <PgUpDn> PANE (SPLIT WINDOW)
    Command ^b : <command> ==========================================

    Copy ^b [ ... <space> ... <enter> Show # ^b q
    @@ -24,7 +24,7 @@ Copy ^b [ ... <space> ... <enter> Show # ^b q
    Paste ^b ] Kill ^b x

    ========================================== Reorganize ^b <space>
    SESSION Expand ^b <alt><arrow>
    SESSION (Set of Windows) Expand ^b <alt><arrow>
    ========================================== Resize ^b ^<arrow>
    Resize x n ^b <n> <arrow>
    New ^b :new ^b :new -s <name>
  3. afair revised this gist Oct 4, 2013. 1 changed file with 36 additions and 35 deletions.
    71 changes: 36 additions & 35 deletions tmux.cheat
    Original file line number Diff line number Diff line change
    @@ -1,35 +1,36 @@
    ========================================== WINDOW (TAB)
    TMUX COMMAND ==========================================
    ==========================================
    List ^b w
    List tmux ls Create ^b c
    New -s <session> Rename ^b , <name>
    Attach att -t <session> Last ^b l (lower-L)
    Rename rename-session -t <old> <new> Close ^b &
    Kill kill-session -t <session>
    Goto # ^b <0-9>
    ========================================== Next ^b n
    CONTROLS Previous ^b p
    ========================================== Choose ^b w <name>

    Detach ^b d ==========================================
    List ^b = PANE
    Buffer ^b <PgUpDn> ==========================================
    Command ^b : <command>
    Show # ^b q
    Copy ^b [ ... <space> ... <enter> Split Horiz ^b " --------
    Moving vim/emacs key bindings Split Vert ^b % |
    Start <space> Make Window ^b !
    Copy <enter> Kill ^b x
    Paste ^b ]
    Reorganize ^b <space>
    ========================================== Expand ^b <alt><arrow>
    SESSION Resize ^b ^<arrow>
    ========================================== Resize x n ^b <n> <arrow>

    New ^b :new ^b :name -s <name> Select ^b <arrow>
    Rename ^b $ <name> Previous ^b {
    List ^b s Next ^b }
    Next ^b ( Switch ^b o other
    Previous ^b ) Swap ^b ^o
    Last ^b ;
    ========================================== ==========================================
    TMUX COMMAND WINDOW (TAB)
    ========================================== ==========================================

    List tmux ls List ^b w
    New -s <session> Create ^b c
    Attach att -t <session> Rename ^b , <name>
    Rename rename-session -t <old> <new> Last ^b l (lower-L)
    Kill kill-session -t <session> Close ^b &

    ========================================== Goto # ^b <0-9>
    CONTROLS Next ^b n
    ========================================== Previous ^b p
    Choose ^b w <name>
    Detach ^b d
    List ^b = ==========================================
    Buffer ^b <PgUpDn> PANE
    Command ^b : <command> ==========================================

    Copy ^b [ ... <space> ... <enter> Show # ^b q
    Moving vim/emacs key bindings Split Horiz ^b " --------
    Start <space> Split Vert ^b % |
    Copy <enter> Pane->Window ^b !
    Paste ^b ] Kill ^b x

    ========================================== Reorganize ^b <space>
    SESSION Expand ^b <alt><arrow>
    ========================================== Resize ^b ^<arrow>
    Resize x n ^b <n> <arrow>
    New ^b :new ^b :new -s <name>
    Rename ^b $ Select ^b <arrow>
    List ^b s Previous ^b {
    Next ^b ( Next ^b }
    Previous ^b ) Switch ^b o other
    Swap ^b ^o
    Last ^b ;
  4. afair revised this gist Oct 4, 2013. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions tmux.cheat
    Original file line number Diff line number Diff line change
    @@ -27,9 +27,9 @@ Paste ^b ]
    SESSION Resize ^b ^<arrow>
    ========================================== Resize x n ^b <n> <arrow>

    Next ^b ( Select ^b <arrow>
    Previous ^b ) Previous ^b {
    Next ^b }
    Switch ^b o other
    ========================================== Swap ^b ^o
    WINDOW (TAB) Last ^b ;
    New ^b :new ^b :name -s <name> Select ^b <arrow>
    Rename ^b $ <name> Previous ^b {
    List ^b s Next ^b }
    Next ^b ( Switch ^b o other
    Previous ^b ) Swap ^b ^o
    Last ^b ;
  5. afair created this gist Aug 27, 2012.
    35 changes: 35 additions & 0 deletions tmux.cheat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    ========================================== WINDOW (TAB)
    TMUX COMMAND ==========================================
    ==========================================
    List ^b w
    List tmux ls Create ^b c
    New -s <session> Rename ^b , <name>
    Attach att -t <session> Last ^b l (lower-L)
    Rename rename-session -t <old> <new> Close ^b &
    Kill kill-session -t <session>
    Goto # ^b <0-9>
    ========================================== Next ^b n
    CONTROLS Previous ^b p
    ========================================== Choose ^b w <name>

    Detach ^b d ==========================================
    List ^b = PANE
    Buffer ^b <PgUpDn> ==========================================
    Command ^b : <command>
    Show # ^b q
    Copy ^b [ ... <space> ... <enter> Split Horiz ^b " --------
    Moving vim/emacs key bindings Split Vert ^b % |
    Start <space> Make Window ^b !
    Copy <enter> Kill ^b x
    Paste ^b ]
    Reorganize ^b <space>
    ========================================== Expand ^b <alt><arrow>
    SESSION Resize ^b ^<arrow>
    ========================================== Resize x n ^b <n> <arrow>

    Next ^b ( Select ^b <arrow>
    Previous ^b ) Previous ^b {
    Next ^b }
    Switch ^b o other
    ========================================== Swap ^b ^o
    WINDOW (TAB) Last ^b ;