# tmux.RunOptions

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/session_run.go#L19
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-runoptions/

RunOptions configures [Session.Run] and [Session.Start]. Its zero value runs the command in a window tmux names, in the session's default directory and environment, and removes that window once the command has finished.

## Members

- `WindowName` (attribute): WindowName names the window the command runs in; empty lets tmux choose.
- `StartDirectory` (attribute): StartDirectory expands ~ and ~/... for the current user; empty inherits the session's default.
- `Environment` (attribute): Environment is added to the command's environment. The map is not retained.
- `Keep` (attribute): Keep leaves the finished window in place, showing what the command printed, instead of removing it.
