# io.github.libtmux.SessionSpec.SessionSpec.Builder

- **Module:** io.github.libtmux.SessionSpec.SessionSpec
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/SessionSpec.java#L185
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-sessionspec-sessionspec-builder-3lof/

Collects the choices, each named for what it does rather than for the field it sets.

## Members

- `named` (method) — Names the session, where tmux would otherwise number it.
- `firstWindowNamed` (method) — Names the session's first window.
- `running` (method) — Runs a command instead of the default shell.
- `in` (method) — Starts the session in this directory.
- `env` (method) — Sets one variable in the new session's environment.
- `environment` (method) — Adds several variables to the new session's environment, keeping any already set.
- `sized` (method) — Gives the session a size, which a detached session has no client to take one from.
- `withoutSize` (method) — Asks tmux not to give the session a size at all.
- `detachOthers` (method) — Detaches any other client already on this session.
- `clientFlags` (method) — Sets the client flags tmux applies, which it reads as one comma-separated list.
- `build` (method) — The finished spec.
