TmuxEnvironmentVariable
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Environment.swift
- struct TmuxEnvironmentVariable : struct TmuxEnvironmentVariable
-
One variable in a tmux environment.
tmux prints two shapes, and they mean different things:
NAME=valueis a variable with a value, and-NAMEis 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.
4 declared, 2 inherited
Members
- init(name:value:) method
- isRemoved property Whether tmux will strip this variable from a new process's environment rather than set it.
- name property The variable's name, without the
-that marks a removal in tmux's own listing. - value property What a new process would be given, or
nilwhen this variable is marked for removal instead. AskisRemovedrather than testing fornilwhere the distinction is the point.
Inherited members
Reached through Equatable.!=(_:_:), Decodable.init(from:).
- !=(_:_:) Equatable.!=(_:_:) Returns a Boolean value indicating whether two values are not equal.
- init(from:) Decodable.init(from:) Creates a new instance by decoding from the given decoder.