#environment #variable #global

globalenv

Globally sets environment variables (and not just for the current process). Support for Windows, zsh and bash (MacOS and most Linux distros).

5 releases (3 breaking)

0.4.1 Aug 14, 2021
0.4.0 Jan 26, 2021
0.3.0 Aug 22, 2020
0.2.0 Aug 21, 2020
0.1.0 Aug 20, 2020

#86 in Configuration

MIT license

10KB
170 lines

globalenv

Current Crates.io Version Downloads badge

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();

License: MIT


lib.rs:

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();

Dependencies

~41KB