# config.paneCommands

**Workspace Manager concept example** A working example of the core library. It can change without notice.

- **Module:** config
- **Package:** @libtmux/workspace
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/workspace/src/config.ts#L88
- **Page:** https://libtmux.org/en/ts/latest/workspace/reference/config-panecommands/

```
function paneCommands(
  pane: WorkspacePane,
  window?: WorkspaceWindow,
): readonly string[]
```

Normalize a pane entry to the commands it should run, in order.

A window's `shell_command_before` runs in every one of its panes, ahead of
that pane's own commands, which is how tmuxp seeds a common environment.

## Parameters

- `pane` (`WorkspacePane`)
- `window?` (`WorkspaceWindow`)
