mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +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 mut executables = vec![];
|
||||||
|
|
||||||
let paths;
|
let paths;
|
||||||
|
paths = self.engine_state.env_vars.get("PATH");
|
||||||
#[cfg(windows)]
|
|
||||||
{
|
|
||||||
paths = self.engine_state.env_vars.get("Path");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
|
||||||
{
|
|
||||||
paths = self.engine_state.env_vars.get("PATH");
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(paths) = paths {
|
if let Some(paths) = paths {
|
||||||
if let Ok(paths) = paths.as_list() {
|
if let Ok(paths) = paths.as_list() {
|
||||||
|
|
Loading…
Reference in a new issue