# io.github.libtmux.Options.Options.setExpanded

- **Module:** io.github.libtmux.Options.Options
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Options.java#L214
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-options-options-setexpanded/

```
io.github.libtmux.Options.Options.setExpanded(name: String, format: String) -> void
```

Sets one option to what a tmux format comes to, rather than to the format itself.

{@code setExpanded("status-left", "in #{session_name}")} stores {@code in base}. The
expansion happens once, when this is called; the option does not stay live.

Because tmux expands the format when this is called, a {@code #(...)} in it runs a command
at that moment. Pass any interpolated value through {@link TmuxFormats#literal} unless you mean
it to be expanded.
