# copy-command

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

> Give the command to pipe to if the copy-pipe copy mode command is used without arguments.

option tmux3.7c

Give the command to pipe to if the copy-pipe copy mode command is used without arguments.

* Scope

  server

* Type

  Text

* Set

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

* Read

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

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

Give the command to pipe to if the `copy-pipe` copy mode command is used without arguments.

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

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

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

* Defined in

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

* 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-copy-command)

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

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.Server.SetCopyCommand`](https://libtmux.org/en/go/latest/reference/tmux-server-setcopycommand/), [`tmux.ServerOptionValues.CopyCommand`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-copycommand/)
