tmuxtmuxOptions, hooks and formats

Choose documentation 1

3.2a

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

option tmux3.2a

update-environment

Set list of environment variables to be copied into the session environment when a new session is created or an existing session is attached.

Scope
session
Type
Text, array of values
Default
DISPLAY KRB5CCNAME SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY
Set
set-option update-environment value
Read
show-options update-environment

Description

Set list of environment variables to be copied into the session environment when a new session is created or an existing session is attached. Any variables that do not exist in the source environment are set to be removed from the session environment (as if -r was given to the set-environment command).

Releases

Source

Defined in
options-table.c:708
C source reference
options_table
CLI manual
Original manual entry

Used by

Library documentation that names this option.

Raku
LibTmux::Catalogue
Erlang
tmux_session:select/3
Haskell
LibTmux.Creation.updateEnvironment
Common Lisp
libtmux:switch-client
Lua
libtmux.SwitchClientOptions.update_environment
Rust
options.generated.UPDATE_ENVIRONMENT
Go
tmux.GlobalSessionScope.SetUpdateEnvironment, tmux.Session.SetUpdateEnvironment, tmux.SessionOptionValues.UpdateEnvironment
OCaml
Libtmux_eio.Client.connect, Libtmux_unix.Client.connect
Esc

Type to search.

Reference previewOpen reference