You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add tab completion to your **nushell** for .NET CLI, add the following to the beginning of your `config.nu` file:
201
-
200
+
To add tab completion to your **nushell** for .NET CLI, run `dotnet completions script nushell` and follow the instructions it provides in your `config.nu` file.
201
+
e.g., if you were not using any external completers, add the following to the end of the file:
202
202
```nu
203
-
let external_completer = { |spans|
204
-
{
205
-
dotnet: { ||
206
-
dotnet complete (
207
-
$spans | skip 1 | str join " "
208
-
) | lines
209
-
}
210
-
} | get $spans.0 | each { || do $in }
203
+
let dotnet_completer = {|spans|
204
+
dotnet complete ($spans | str join " ") | lines
211
205
}
212
-
```
213
-
214
-
And then in the `config` record, find the `completions` section and add the `external_completer` that was defined earlier to `external`:
0 commit comments