Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/core/tools/enable-tab-autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Starting with .NET 10, the .NET CLI includes native shell completion scripts tha

### Generate completion scripts

Use the `dotnet completions generate` command to generate a completion script for your shell:
Use the `dotnet completions script` command to generate a completion script for your shell:

```console
dotnet completions generate [SHELL]
dotnet completions script [SHELL]
```

The `[SHELL]` parameter accepts one of the following values:
Expand Down Expand Up @@ -62,39 +62,39 @@ Add the appropriate command to your shell's profile to enable native completions
Add the following line to your PowerShell profile (`$PROFILE`):

```powershell
dotnet completions generate pwsh | Out-String | Invoke-Expression
dotnet completions script pwsh | Out-String | Invoke-Expression
```

#### Bash

Add the following line to your `.bashrc` file:

```bash
eval "$(dotnet completions generate bash)"
eval "$(dotnet completions script bash)"
```

#### Zsh

Add the following line to your `.zshrc` file:

```zsh
eval "$(dotnet completions generate zsh)"
eval "$(dotnet completions script zsh)"
```

#### Fish

Add the following line to your `config.fish` file:

```fish
dotnet completions generate fish | source
dotnet completions script fish | source
```

#### Nushell

Add the following to the beginning of your `config.nu` file:

```nu
dotnet completions generate nushell | save -f ~/.local/share/nushell/completions/dotnet.nu
dotnet completions script nushell | save -f ~/.local/share/nushell/completions/dotnet.nu
use ~/.local/share/nushell/completions/dotnet.nu *
```

Expand Down
4 changes: 2 additions & 2 deletions docs/core/whats-new/dotnet-10/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ The `--interactive` flag is now enabled by default for CLI commands in interacti

## Native shell tab-completion scripts

The `dotnet` CLI now supports generating native tab-completion scripts for popular shells using the `dotnet completions generate [SHELL]` command. Supported shells include `bash`, `fish`, `nushell`, `powershell`, and `zsh`. These scripts improve usability by providing faster and more integrated tab-completion features. For example, in PowerShell, you can enable completions by adding the following to your `$PROFILE`:
The `dotnet` CLI now supports generating native tab-completion scripts for popular shells using the `dotnet completions script [SHELL]` command. Supported shells include `bash`, `fish`, `nushell`, `powershell`, and `zsh`. These scripts improve usability by providing faster and more integrated tab-completion features. For example, in PowerShell, you can enable completions by adding the following to your `$PROFILE`:

```powershell
dotnet completions script pwsh | out-String | Invoke-Expression -ErrorAction SilentlyContinue
dotnet completions script pwsh | Out-String | Invoke-Expression
```

## Console apps can natively create container images
Expand Down
Loading