libtmux Reference MCP Search
On this page

server.Server.showGlobalOptions

View as Markdown

Module
server
Declared in
Server
Package
@libtmux/libtmux
Source
packages/libtmux/src/server.ts
showGlobalOptions ( scope : : "session" | "window" ) Promise<ReadonlyMap<string, string>>
method [source]
method [source]
showGlobalOptions

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.

Examples

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

0 declared, 0 inherited

Esc

Type to search.