Skip to content

Instantly share code, notes, and snippets.

@chadmayfield
Last active February 19, 2019 04:43
Show Gist options
  • Save chadmayfield/e762ebccd716807ce74321fd5e7ba240 to your computer and use it in GitHub Desktop.
Save chadmayfield/e762ebccd716807ce74321fd5e7ba240 to your computer and use it in GitHub Desktop.

Revisions

  1. chadmayfield revised this gist Feb 19, 2019. 1 changed file with 30 additions and 30 deletions.
    60 changes: 30 additions & 30 deletions tmux.txt
    Original file line number Diff line number Diff line change
    @@ -1,33 +1,33 @@
    tmux start tmux server
    tmux new-session -s basic start a new session and name it basic
    tmux new -s basic same command as above but abbreviated
    CTRL+b command key combo (PREFIX)
    PREFIX + d detach window
    tmux list-sessions list running sessions
    tmux ls list running sessions abbreviated
    tmux attach attach to running session
    tmux new -s second -d create tmux instance in background
    tmux attach -t second attach to session named "second"
    tmux kill-session -t basic kill session name "basic"
    tmux new -s windows -n shell create new session called windows, with tab named shell
    PREFIX + c create a new window in current session (takes focus)
    PREFIX + , rename current window
    PREFIX + n move to next window
    PREFIX + p move to previous window
    PREFIX + "number" (e.g. 1) move to window specified number (zero-based array)
    PREFIX + f find a window by name (if we have more than 9)
    PREFIX + w display the window menu visually
    PREFIX + & kill the current window (will prompt)
    tmuxh new -s panes create a new session named "panes"
    PREFIX + % split the current window into two panes VERTICALLY
    PREFIX + " split the current window into two panes HORIZONTALLY
    PREFIX + "number" cycle through the panes (0..9)
    PREFIX + {up,down,left,right} move through the panes
    PREFIX + SPACEBAR cycle through pane layouts in the following order;
    even-{horizontal,vertical}, main-{horizontal,vertical}, tiled
    PREFIX + x or exit close a pane or widnow (if only one pane) with confirmation
    PREFIX + : enter Command Mode within running session (status bar color change)
    new-window -n console in command mode open a new window called console
    tmux start tmux server
    tmux new-session -s basic start a new session and name it basic
    tmux new -s basic same command as above but abbreviated
    CTRL+b command key combo (PREFIX)
    PREFIX + d detach window
    tmux list-sessions list running sessions
    tmux ls list running sessions abbreviated
    tmux attach attach to running session
    tmux new -s second -d create tmux instance in background
    tmux attach -t second attach to session named "second"
    tmux kill-session -t basic kill session name "basic"
    tmux new -s windows -n shell create new session called windows, with tab named shell
    PREFIX + c create a new window in current session (takes focus)
    PREFIX + , rename current window
    PREFIX + n move to next window
    PREFIX + p move to previous window
    PREFIX + "number" (e.g. 1) move to window specified number (zero-based array)
    PREFIX + f find a window by name (if we have more than 9)
    PREFIX + w display the window menu visually
    PREFIX + & kill the current window (will prompt)
    tmuxh new -s panes create a new session named "panes"
    PREFIX + % split the current window into two panes VERTICALLY
    PREFIX + " split the current window into two panes HORIZONTALLY
    PREFIX + "number" cycle through the panes (0..9)
    PREFIX + {up,down,left,right} move through the panes
    PREFIX + SPACEBAR cycle through pane layouts in the following order;
    even-{horizontal,vertical}, main-{horizontal,vertical}, tiled
    PREFIX + x or exit close a pane or widnow (if only one pane) with confirmation
    PREFIX + : enter Command Mode within running session (status bar color change)
    new-window -n console in command mode open a new window called console
    new-window -n processes "top" in command mode open a new window called processes and run top (exiting top will close pane)


  2. chadmayfield revised this gist Feb 19, 2019. 1 changed file with 30 additions and 30 deletions.
    60 changes: 30 additions & 30 deletions tmux.txt
    Original file line number Diff line number Diff line change
    @@ -1,33 +1,33 @@
    tmux start tmux server
    tmux new-session -s basic start a new session and name it basic
    tmux new -s basic same command as above but abbreviated
    CTRL+b command key combo (PREFIX)
    PREFIX + d detach window
    tmux list-sessions list running sessions
    tmux ls list running sessions abbreviated
    tmux attach attach to running session
    tmux new -s second -d create tmux instance in background
    tmux attach -t second attach to session named "second"
    tmux kill-session -t basic kill session name "basic"
    tmux new -s windows -n shell create new session called windows, with tab named shell
    PREFIX + c create a new window in current session (takes focus)
    PREFIX + , rename current window
    PREFIX + n move to next window
    PREFIX + p move to previous window
    PREFIX + "number" (e.g. 1) move to window specified number (zero-based array)
    PREFIX + f find a window by name (if we have more than 9)
    PREFIX + w display the window menu visually
    PREFIX + & kill the current window (will prompt)
    tmuxh new -s panes create a new session named "panes"
    PREFIX + % split the current window into two panes VERTICALLY
    PREFIX + " split the current window into two panes HORIZONTALLY
    PREFIX + "number" cycle through the panes (0..9)
    PREFIX + {up,down,left,right} move through the panes
    PREFIX + SPACEBAR cycle through pane layouts in the following order;
    even-{horizontal,vertical}, main-{horizontal,vertical}, tiled
    PREFIX + x or exit close a pane or widnow (if only one pane) with confirmation
    PREFIX + : enter Command Mode within running session (status bar color change)
    new-window -n console in command mode open a new window called console
    tmux start tmux server
    tmux new-session -s basic start a new session and name it basic
    tmux new -s basic same command as above but abbreviated
    CTRL+b command key combo (PREFIX)
    PREFIX + d detach window
    tmux list-sessions list running sessions
    tmux ls list running sessions abbreviated
    tmux attach attach to running session
    tmux new -s second -d create tmux instance in background
    tmux attach -t second attach to session named "second"
    tmux kill-session -t basic kill session name "basic"
    tmux new -s windows -n shell create new session called windows, with tab named shell
    PREFIX + c create a new window in current session (takes focus)
    PREFIX + , rename current window
    PREFIX + n move to next window
    PREFIX + p move to previous window
    PREFIX + "number" (e.g. 1) move to window specified number (zero-based array)
    PREFIX + f find a window by name (if we have more than 9)
    PREFIX + w display the window menu visually
    PREFIX + & kill the current window (will prompt)
    tmuxh new -s panes create a new session named "panes"
    PREFIX + % split the current window into two panes VERTICALLY
    PREFIX + " split the current window into two panes HORIZONTALLY
    PREFIX + "number" cycle through the panes (0..9)
    PREFIX + {up,down,left,right} move through the panes
    PREFIX + SPACEBAR cycle through pane layouts in the following order;
    even-{horizontal,vertical}, main-{horizontal,vertical}, tiled
    PREFIX + x or exit close a pane or widnow (if only one pane) with confirmation
    PREFIX + : enter Command Mode within running session (status bar color change)
    new-window -n console in command mode open a new window called console
    new-window -n processes "top" in command mode open a new window called processes and run top (exiting top will close pane)


  3. chadmayfield created this gist Feb 19, 2019.
    36 changes: 36 additions & 0 deletions tmux.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    tmux start tmux server
    tmux new-session -s basic start a new session and name it basic
    tmux new -s basic same command as above but abbreviated
    CTRL+b command key combo (PREFIX)
    PREFIX + d detach window
    tmux list-sessions list running sessions
    tmux ls list running sessions abbreviated
    tmux attach attach to running session
    tmux new -s second -d create tmux instance in background
    tmux attach -t second attach to session named "second"
    tmux kill-session -t basic kill session name "basic"
    tmux new -s windows -n shell create new session called windows, with tab named shell
    PREFIX + c create a new window in current session (takes focus)
    PREFIX + , rename current window
    PREFIX + n move to next window
    PREFIX + p move to previous window
    PREFIX + "number" (e.g. 1) move to window specified number (zero-based array)
    PREFIX + f find a window by name (if we have more than 9)
    PREFIX + w display the window menu visually
    PREFIX + & kill the current window (will prompt)
    tmuxh new -s panes create a new session named "panes"
    PREFIX + % split the current window into two panes VERTICALLY
    PREFIX + " split the current window into two panes HORIZONTALLY
    PREFIX + "number" cycle through the panes (0..9)
    PREFIX + {up,down,left,right} move through the panes
    PREFIX + SPACEBAR cycle through pane layouts in the following order;
    even-{horizontal,vertical}, main-{horizontal,vertical}, tiled
    PREFIX + x or exit close a pane or widnow (if only one pane) with confirmation
    PREFIX + : enter Command Mode within running session (status bar color change)
    new-window -n console in command mode open a new window called console
    new-window -n processes "top" in command mode open a new window called processes and run top (exiting top will close pane)


    .tmux.conf file example
    -----------------------
    $ touch ~/.tmux.conf