mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
PATH
for completions for each os (#784)
This commit is contained in:
parent
45b3592739
commit
65ef7b630b
1 changed files with 1 additions and 10 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue