# TmuxEnvironmentVariable

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Environment.swift#L25
- **Page:** https://libtmux.org/reference/swift/tmuxenvironmentvariable/

One variable in a tmux environment.

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.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `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 `nil` when this variable is marked for removal instead. Ask ``isRemoved`` rather than testing for `nil` where the distinction is the point.
- `init(name:value:)` (method)
- `isRemoved` (property) — Whether tmux will strip this variable from a new process's environment rather than set it.
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
