# pane_current_command

Source: https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_current_command/

> Current command if available

format variable tmux3.2a

Current command if available

* Scope

  Describes the pane being formatted

* Type

  Text

* Usage

  `#{pane_current_command}`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_current_command/#description)

Current command if available

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_current_command/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/pane_current_command/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_current_command/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_current_command/#source)

* Defined in

  [`format.c:2717`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L2717)

* C source reference

  [`format_cb_current_command`](https://libtmux.org/en/tmux/3.2a/reference/c-function-format-c-format_cb_current_command/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#pane_current_command)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_current_command/#used-by)

Library documentation that names this format variable.

* Python

  [`libtmux_mcp.tools.pane_tools.respawn_pane`](https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-pane_tools-respawn_pane/), [`libtmux.Server.search_panes`](https://libtmux.org/en/py/latest/reference/libtmux-server-search_panes/)

* Rust

  [`server.Server.format`](https://libtmux.org/en/rs/latest/reference/server-server-format/)

* Go

  [`tmux.FormatValues.PaneCurrentCommand`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-panecurrentcommand/), [`tmux.Pane.CurrentCommand`](https://libtmux.org/en/go/latest/reference/tmux-pane-currentcommand/), [`tmux.SubscriptionRequest.Format`](https://libtmux.org/en/go/latest/reference/tmux-subscriptionrequest-format/)

* Java

  [`io.github.libtmux.control.ControlClient.watch`](https://libtmux.org/en/java/latest/reference/io-github-libtmux-control-controlclient-controlclient-watch/), [`io.github.libtmux.jackson.LibTmuxModels`](https://libtmux.org/en/java/latest/reference/io-github-libtmux-jackson-libtmuxmodels-libtmuxmodels/)

* C++

  [`libtmux::Pane::expand`](https://libtmux.org/en/cxx/latest/reference/libtmux-pane-expand/), [`libtmux::StringField`](https://libtmux.org/en/cxx/latest/reference/libtmux-stringfield/)

* Swift

  [`FormatSubscription.format`](https://libtmux.org/en/swift/latest/reference/formatsubscription-format/)
