std env
Get environment variable
#![allow(unused)] fn main() { let editor = env::var("EDITOR").expect("EDITOR doesn't exist"); println!("{}", editor); }
#![allow(unused)] fn main() { let editor = env::var("EDITOR").expect("EDITOR doesn't exist"); println!("{}", editor); }