diff --git a/src/bin/argc/completions/mod.rs b/src/bin/argc/completions/mod.rs index c4f4e191..1ba96329 100644 --- a/src/bin/argc/completions/mod.rs +++ b/src/bin/argc/completions/mod.rs @@ -49,9 +49,9 @@ pub fn generate(shell: Shell, args: &[String]) -> Result { format!( r###"{NUSHELL_SCRIPT} if ('ARGC_SCRIPTS' in $env) {{ - let-env ARGC_SCRIPTS = ($env.ARGC_SCRIPTS | append {cmds} | uniq) + $env.ARGC_SCRIPTS = ($env.ARGC_SCRIPTS | append {cmds} | uniq) }} else {{ - let-env ARGC_SCRIPTS = {cmds} + $env.ARGC_SCRIPTS = {cmds} }} let external_completer = {{|spans|