From 65ef7b630b68779d3973ba3c366f342c7efa2f5b Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 20 Jan 2022 12:46:52 -0600 Subject: [PATCH] `PATH` for completions for each os (#784) --- crates/nu-cli/src/completions.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/crates/nu-cli/src/completions.rs b/crates/nu-cli/src/completions.rs index 38bf7ccaa..27e37fcb7 100644 --- a/crates/nu-cli/src/completions.rs +++ b/crates/nu-cli/src/completions.rs @@ -23,16 +23,7 @@ impl NuCompleter { let mut executables = vec![]; let paths; - - #[cfg(windows)] - { - paths = self.engine_state.env_vars.get("Path"); - } - - #[cfg(not(windows))] - { - paths = self.engine_state.env_vars.get("PATH"); - } + paths = self.engine_state.env_vars.get("PATH"); if let Some(paths) = paths { if let Ok(paths) = paths.as_list() {