Skip to content

Instantly share code, notes, and snippets.

@evertonfragoso
Last active April 3, 2025 16:19
Show Gist options
  • Save evertonfragoso/1a0ad00d8f751c40111e23d308a9d14b to your computer and use it in GitHub Desktop.
Save evertonfragoso/1a0ad00d8f751c40111e23d308a9d14b to your computer and use it in GitHub Desktop.

Revisions

  1. evertonfragoso revised this gist Apr 3, 2025. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions tmux.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@ CTRL+B followed by any of these
    D Detach current session.
    ? Display Help page in tmux.

    * Note: to reattach to a detached session, run `tmux attach -t session_name`

    ### Window Commands

    C Create a new window.
  2. evertonfragoso created this gist Mar 31, 2025.
    34 changes: 34 additions & 0 deletions tmux.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    CTRL+B followed by any of these

    ### Session Commands

    S List sessions.
    $ Rename current session.
    D Detach current session.
    ? Display Help page in tmux.

    ### Window Commands

    C Create a new window.
    , Rename the current window.
    W List the windows.
    N Move to the next window.
    P Move to the previous window.
    " Split window horizontally.
    % Split window vertically.
    0 - 9 Move to the window number specified.
    & Kill current window

    ### Pane Commands

    Arrow Keys Move to the selected direction pane.
    ; Move to the previously active pane.
    q Briefly show pane numbers.
    o Move through panes in order. Each press takes you to the next, until you loop through all of them.
    } Swap the position of the current pane with the next.
    { Swap the position of the current pane with the previous.
    x Kill the active pane.
    Ctrl-Up Resize the pane up
    Ctrl-Down Resize the pane down
    Ctrl-Left Resize the pane left
    Ctrl-Right Resize the pane right