From db6c804b17c59874c6a963dd300b85c6fab18260 Mon Sep 17 00:00:00 2001 From: John Johnstone Date: Mon, 5 Dec 2022 03:23:58 +0000 Subject: [PATCH] fix menus in default config (#7352) Simply fixes menus commands_with_description, commands_menu --- crates/nu-utils/src/sample_config/default_config.nu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu-utils/src/sample_config/default_config.nu b/crates/nu-utils/src/sample_config/default_config.nu index 27deb990b1..7cd1141459 100644 --- a/crates/nu-utils/src/sample_config/default_config.nu +++ b/crates/nu-utils/src/sample_config/default_config.nu @@ -394,8 +394,8 @@ let-env config = { } source: { |buffer, position| $nu.scope.commands - | where command =~ $buffer - | each { |it| {value: $it.command description: $it.usage} } + | where name =~ $buffer + | each { |it| {value: $it.name description: $it.usage} } } } { @@ -437,8 +437,8 @@ let-env config = { } source: { |buffer, position| $nu.scope.commands - | where command =~ $buffer - | each { |it| {value: $it.command description: $it.usage} } + | where name =~ $buffer + | each { |it| {value: $it.name description: $it.usage} } } } ]