Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 1.46 KB

dotnet-suggest.md

File metadata and controls

24 lines (13 loc) · 1.46 KB

dotnet-suggest

Command line apps built using System.CommandLine have built-in support for tab completion.

t-rex-suggestions

On the machine where you'd like to enable completion, you'll need to do two things.

  1. Install the dotnet-suggest global tool:

    Nuget

  2. Add the appropriate shim script to your shell profile. You may have to create a shell profile file. The shim script will forward completion requests from your shell to the dotnet-suggest tool, which delegates to the appropriate System.CommandLine-based app.

    • For bash, add the contents of dotnet-suggest-shim.bash to ~/.bash_profile.

    • For PowerShell, add the contents of dotnet-suggest-shim.ps1 to your PowerShell profile. You can find the expected path to your PowerShell profile by running the following in your console:

> echo $profile

(For other shells, please look for or open an issue.)