# LibTmux::PaneSnapshot#current_command

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-panesnapshot-current_command/

```
def current_command: () -> ::String
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### The command tmux reports running in a pane

- Elixir: [`LibTmux.Pane.current_command`](/en/elixir/latest/reference/libtmux-pane-current_command/) (property)
- Python: [`libtmux.Pane.pane_current_command`](/en/py/latest/reference/libtmux-pane-pane_current_command/) (attribute)
- Lua: [`libtmux.SnapshotPane.current_command`](/en/lua/latest/reference/libtmux-snapshotpane-current_command/) (attribute)
- Rust: [`pane.Pane.current_command`](/en/rs/latest/reference/pane-pane-current_command/) (method)
- Go: [`tmux.Pane.CurrentCommand`](/en/go/latest/reference/tmux-pane-currentcommand/) (method)
- Java: [`io.github.libtmux.Pane.Pane.currentCommand`](/en/java/latest/reference/io-github-libtmux-pane-pane-currentcommand/) (method)
- C++: [`libtmux::Pane::command`](/en/cxx/latest/reference/libtmux-pane-command-6i9x/) (method)
- Swift: [`Pane.currentCommand`](/en/swift/latest/reference/pane-currentcommand/) (property)
