# tmuxtest.ServerOptions

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/tmuxtest/harness.go#L97
- **Page:** https://libtmux.org/en/go/latest/reference/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.
