Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.21 KB

dotnet-suggest.md

File metadata and controls

37 lines (25 loc) · 1.21 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:
dotnet tool install -g dotnet-suggest
  1. Install the completion script.

bash

dotnet-suggest script bash >~/.dotnet-suggest-shim.bash
echo '. ~/.dotnet-suggest-shim.bash' >>~/.bashrc

zsh

dotnet-suggest script zsh >~/.dotnet-suggest-shim.zsh
echo '. ~/.dotnet-suggest-shim.zsh' >>~/.zshrc

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.)