# tmuxtest.ServerOptions

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/tmuxtest/harness.go#L94
- **Page:** https://libtmux.org/reference/go/tmuxtest-serveroptions/

ServerOptions configures a harness-owned [tmux.Server]. All inputs are copied before filesystem or process operations, so callers retain ownership.

## Members

- `Binary` (attribute) — Binary is the tmux executable. An empty value resolves tmux from PATH.
- `Config` (attribute) — Config is appended to the harness-owned config file; it cannot replace the private file that prevents user configuration from loading.
- `ProcessEnvironment` (attribute) — ProcessEnvironment supplies the server environment. Nil snapshots the current process environment, while a non-nil empty slice remains empty. Tmux targeting variables are removed in either case.
- `InitialSession` (attribute) — InitialSession starts the daemon with this copied request. Nil returns a lazy bare server; a later tmux command may start it.
- `FixedShell` (attribute) — FixedShell gives panes without an explicit command a POSIX shell with no startup files and the prompt ShellPrompt. RunInPane sets it; the default preserves tmux process behavior for tests that need it.
