forked from extern/nushell
PATH
for completions for each os (#784)
This commit is contained in:
parent
45b3592739
commit
65ef7b630b
@ -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 New Issue
Block a user