Overview
Windows are the primary containers within a tmux session. Each session has one or more windows, and windows may be linked to multiple sessions. Windows are made up of one or more panes.new-window
Alias:neww
Insert the new window at the next index after the specified target-window, moving windows up if necessary.
Insert the new window at the next index before the specified target-window.
Do not make the new window the current window.
If the target window exists, destroy it before creating the new window.
Print information about the new window after it has been created. Default format is
#{session_name}:#{window_index} but can be changed with -F.Set synchronized-panes on for the new window.
Specify the working directory for the new window.
Set an environment variable for the new window in the form
VARIABLE=value. May be specified multiple times.Format for output when
-P is used.Name for the new window.
The target window position. If it doesn’t exist, the new window is created at the next free index.
Shell command to execute in the new window. If not specified, the default command is used.
kill-window
Alias:killw
Kill all windows except the specified one.
The target window to destroy.
select-window
Alias:selectw
Select the last (previously selected) window.
Select the next window.
Select the previous window.
If the window is already the current window, select the last window.
The target window to select.
list-windows
Alias:lsw
List all windows across all sessions.
Reverse the sort order.
Specify the format of each line.
Only show windows for which the filter is true.
Specify sort order:
index, name, creation (time), or activity (time).List windows in the target session.
rename-window
Alias:renamew
new-name.
The target window to rename.
The new name for the window.
move-window
Alias:movew
Move the window to the next index after dst-window.
Move the window to the next index before dst-window.
Do not make the moved window the current window.
If dst-window exists, destroy it before moving or linking.
Renumber windows in the session in sequential order.
The source window to move.
The destination window position.
link-window
Alias:linkw
Link the window at the next index after dst-window.
Link the window at the next index before dst-window.
Do not make the linked window the current window.
If dst-window exists, destroy it before linking.
The source window to link.
The destination window position.
unlink-window
Alias:unlinkw
Kill the window if it is only present in one session.
The target window to unlink.
swap-window
Alias:swapw
Do not make the swapped window the current window.
The source window.
The destination window.
rotate-window
Alias:rotatew
Rotate downward (the last pane becomes the first).
Rotate upward (the first pane becomes the last).
Keep the window zoomed if it was zoomed.
The target window.
respawn-window
Alias:respawnw
Specify the working directory for the command.
Set an environment variable in the form
VARIABLE=value. May be specified multiple times.Kill the existing command if it is still running.
The target window to respawn.
Shell command to execute. If not specified, the command used when the window was created is reused.
find-window
Alias:findw
match-string.
Ignore case when matching.
Match only visible window contents.
Match only window names.
Match match-string as a regular expression.
Match only window titles.
Zoom the pane.
The target pane for displaying results.
The string or pattern to search for.
last-window
Alias:last
The target session.
next-window
Alias:next
Move to the next window with an alert (bell, activity, or silence).
The target session.
previous-window
Alias:prev
Move to the previous window with an alert.
The target session.