From f085bd97f6c9817cbdb7ce6ed658efd418498b52 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Fri, 18 Feb 2022 14:34:40 -0500 Subject: [PATCH] Add some more builtin var completions (#4540) --- crates/nu-cli/src/completions.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/nu-cli/src/completions.rs b/crates/nu-cli/src/completions.rs index 7c5d25b2aa..05be863689 100644 --- a/crates/nu-cli/src/completions.rs +++ b/crates/nu-cli/src/completions.rs @@ -71,7 +71,9 @@ impl NuCompleter { ) -> Vec<(reedline::Span, String)> { let mut output = vec![]; - let builtins = ["$nu", "$scope", "$in", "$config", "$env"]; + let builtins = [ + "$nu", "$scope", "$in", "$config", "$env", "$true", "$false", "$nothing", + ]; for builtin in builtins { if builtin.as_bytes().starts_with(prefix) {