From 894c07bf5af75233c1a5552a39c9c515aa342fff Mon Sep 17 00:00:00 2001 From: Alex Pawlowski Date: Wed, 8 Dec 2021 15:19:56 -0500 Subject: [PATCH] Document handle_macos() --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7ed90bf..6603a88 100644 --- a/src/main.rs +++ b/src/main.rs @@ -230,9 +230,10 @@ fn handle_macos() { if env::var_os("TERM").is_none() { let shell = env::var("SHELL").unwrap(); + // printenv is the proper way to print env variables. using echo $PATH would break Fish. let cmd = "printenv PATH"; if let Ok(path) = std::process::Command::new(shell) - .arg("-lic") + .arg("-lic") // interactive login shell, this simulates opening a real terminal emulator .arg(cmd) .output() {