diff --git a/custom-completions/yarn/yarn-completion.nu b/custom-completions/yarn/yarn-v4-completions.nu similarity index 98% rename from custom-completions/yarn/yarn-completion.nu rename to custom-completions/yarn/yarn-v4-completions.nu index fc2169b..db120c1 100644 --- a/custom-completions/yarn/yarn-completion.nu +++ b/custom-completions/yarn/yarn-v4-completions.nu @@ -382,14 +382,16 @@ export extern "yarn remove" [ ] def "nu-complete yarn run" [] { - let userScripts = (open ./package.json - |get scripts - |columns) + let userScripts = open ./package.json + | get scripts + | transpose + | rename value description - let binaries = (yarn bin --json - |lines - |each { |it| $it | from json} - |get name) + let binaries = yarn bin --json + | lines + | each { |it| $it | from json } + | select name source + | rename value description $userScripts | append $binaries }