# server.Server.showGlobalOptions

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L586
- **Page:** https://libtmux.org/reference/ts/server-server-showglobaloptions/

```
server.Server.showGlobalOptions(scope: : "session" | "window") -> Promise<ReadonlyMap<string, string>>
```

Read the defaults every session or window inherits.

Most of tmux's options live here rather than on an object: a session that
has set nothing reports nothing, while the values actually governing it
are these. `history-limit` and `default-shell` are both global session
options and `remain-on-exit` a global window one; none of the three is
readable any other way.

## Example

```ts
const defaults = await server.showGlobalOptions("session");
defaults.get("default-shell");
```
