From 3423cd54a1cbbc8d6e6209f864396b379d9b668e Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Wed, 8 Jun 2022 19:22:53 +0800 Subject: [PATCH] add search terms to alias (#5737) --- crates/nu-command/src/core_commands/alias.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/nu-command/src/core_commands/alias.rs b/crates/nu-command/src/core_commands/alias.rs index 0815daee9..225865f2e 100644 --- a/crates/nu-command/src/core_commands/alias.rs +++ b/crates/nu-command/src/core_commands/alias.rs @@ -34,6 +34,10 @@ impl Command for Alias { true } + fn search_terms(&self) -> Vec<&str> { + vec!["abbr", "aka", "fn", "func", "function"] + } + fn run( &self, _engine_state: &EngineState,