# io.github.libtmux.kotlin.SessionBuilder

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt#L60
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-sessionbuilder/

```
@LibTmuxDsl
public class SessionBuilder
```

Configure a new session, its initial command, and its windows with [Server.newSession].

## Members

### Other members

- `directory` (property): The session's working directory, which its first window starts in too.
- `env` (method): Adds a variable to the new session's environment, keeping any already set.
- `name` (property)
- `running` (method): Runs [argv] in the first window instead of the default shell.
- `window` (method)
