globenv
Globally set & read environment variables and paths (not just for the current process) on Windows, macOS or Linux
Example:
use *;
// Get environment variable
get_var.unwrap.unwrap;
// Set environment variable
set_var.unwrap;
// Remove environment variable
remove_var.unwrap;
// Get all environment paths
get_paths.unwrap;
// Set environment path
set_path.unwrap;
// Remove environment path
remove_path.unwrap;
Credit:
Based on the globalenv by @nicolasbauw