Crate globalenv

source ·
Expand description

Globally set or unset environment variables (and not just for the current process). Support for Windows, zsh and bash (MacOS and most Linux distros). Example:

use globalenv::{set_var, unset_var};
set_var("ENVTEST", "TESTVALUE").unwrap();
unset_var("ENVTEST").unwrap();

Enums

Functions

Sets a global environment variable, usable also in current process without reload.
Unsets both global and local (process) environment variable.