tmuxtmuxOptions, hooks and formats

Choose documentation 1

3.7c

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

option tmux3.7c

default-command

Set the command used for new windows (if not specified when the window is created) to shell-command, which may be any sh(1) command.

Scope
session
Type
Text
Set
set-option default-command value
Read
show-options default-command

Description#

Set the command used for new windows (if not specified when the window is created) to shell-command, which may be any sh(1) command. The default is an empty string, which instructs tmux to create a login shell using the value of the default-shell option.

Releases#

Source#

Defined in
options-table.c:595
C source reference
options_table
CLI Manual
Original manual entry

Used by#

Library documentation that names this option.

Python
libtmux_mcp.tools.option_tools.set_option
Rust
options.generated.DEFAULT_COMMAND
Go
tmux.DisplayPopupRequest.Command, tmux.GlobalSessionScope.SetDefaultCommand, tmux.Session.SetDefaultCommand, tmux.SessionOptionValues.DefaultCommand
Java
io.github.libtmux.PaneStart.Shell
Esc

Type to search.

Reference preview Open reference