Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-swift latest

TmuxEnvironmentVariable

One variable in a tmux environment.

Source and package
Qualified name
TmuxEnvironmentVariable
Package
libtmux-swift
Source
Sources/LibTmux/Environment.swift
struct TmuxEnvironmentVariable : struct TmuxEnvironmentVariable

Description#

tmux prints two shapes, and they mean different things: NAME=value is a variable with a value, and -NAME is one marked so that new processes start without it, which is not the same as it being absent. Folding both into a dictionary of strings would turn the second into a variable whose name begins with a dash.

Members4#

  • init(name:value:) method
  • isRemoved: var isRemoved: Bool property Whether tmux will strip this variable from a new process's environment rather than set it.
  • name: let name: String property The variable's name, without the - that marks a removal in tmux's own listing.
  • value: let value: String? property What a new process would be given, or nil when this variable is marked for removal instead. Ask isRemoved rather than testing for nil where the distinction is the point.

Inherited members2 members#

Reached through Equatable.!=(_:_:), Decodable.init(from:).

  • !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
  • init(from:) method inherited Creates a new instance by decoding from the given decoder.
Esc

Type to search.

Reference previewOpen reference