globalenv 0.4.1

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

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