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-optiondefault-command value - Read
-
show-optionsdefault-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.
- Raku
LibTmux::Catalogue- Haskell
LibTmux.Creation.DefaultProcess- 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