Session.SetUpdateEnvironment
SetUpdateEnvironment replaces the complete "update-environment" session option array with SparseArraystring, preserving holes and empty values. Read it with SessionOptionValues.UpdateEnvironment from Session.Options; Session.UnsetOption restores inheritance or the global default. Replacement is not atomic: the result reports confirmed writes, and failures stop without rollback. Serialize concurrent replacement of the same target and option.
Source and package
- Qualified name
-
tmux.Session. Set Update Environment - Package
- tmux
- Declared in
Session- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/option_generated.go
- func (s Session) SetUpdateEnvironment( ctx context
.Context , value SparseArray [string], ) (SetArray , error)Result -
- Parameters
-
-
value(SparseArray [string]) #