Skip to content

Globally set & read environment variables and paths on Windows, macOS or Linux

License

Notifications You must be signed in to change notification settings

DervexDev/globenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

globenv

Globally set & read environment variables and paths (not just for the current process) on Windows, macOS or Linux

Version badge Downloads badge License badge Docs badge

Example:

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

Credit:

Based on the globalenv by @nicolasbauw

About

Globally set & read environment variables and paths on Windows, macOS or Linux

Topics

Resources

License

Stars

Watchers

Forks

Languages