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