Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.Server.getEnvironment

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
Python Ruby Lua RustGo Java .NET C++ Swift
getEnvironment ( name : : string ) → Promise<EnvironmentValue | undefined>
method [source]
method [source]
getEnvironment

One variable from the server's global environment, or undefined when tmux carries no entry.

Examples

await server.getEnvironment("EDITOR"); // "vim", null, or undefined
In other ports Read one variable from the server's environment
  • Python no single-variable read; the whole table is returned
  • Ruby No source-verified Ruby equivalent is recorded for this operation.
  • Lua No source-verified Lua equivalent is recorded for this operation.
  • Rust server.Server.environment
  • Go tmux.Server.GetEnvironment
  • Java no single-variable read; the whole table is returned
  • .NET no single-variable read; the whole table is returned
  • C++ no single-variable read; the whole table is returned
  • Swift no single-variable read; the whole table is returned

0 declared, 0 inherited

Esc

Type to search.