# default-client-command

Source: https://libtmux.org/en/tmux/latest/catalog/options/default-client-command/

> Set the default command to run when tmux is called without a command.

option tmux3.7c

Set the default command to run when tmux is called without a command.

* Scope

  server

* Type

  tmux command

* Default

  `new-session`

* Set

  [`set-option`](https://libtmux.org/en/tmux/latest/manual/set-option/) `-s default-client-command value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/latest/manual/show-options/) `-s default-client-command`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/options/default-client-command/#description)

Set the default command to run when tmux is called without a command. The default is [`new-session`](https://libtmux.org/en/tmux/latest/manual/new-session/).

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/options/default-client-command/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/default-client-command/) : present
* tmux 3.2a : not present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/options/default-client-command/#source)

* Defined in

  [`options-table.c:344`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L344)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/latest/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#options-default-client-command)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/options/default-client-command/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.DEFAULT_CLIENT_COMMAND`](https://libtmux.org/en/rs/latest/reference/options-generated-default_client_command/)

* Go

  [`tmux.Server.SetDefaultClientCommand`](https://libtmux.org/en/go/latest/reference/tmux-server-setdefaultclientcommand/), [`tmux.ServerOptionValues.DefaultClientCommand`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-defaultclientcommand/)
