It's not feature complete yet but if you want to try it out run the following:
Install-Module PowerType -AllowPrerelease
Enable-PowerType
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -PredictionViewStyle ListView # Optional
If you now type git
you should get autocompletion, the dictionary for git is far from complete and doesn't know about all commands and parameters yet.
Ensure that you are running PowerShell 7.2
and PSReadLine 2.2.0-beta4
or newer!
Open your PowerShell Profile
by running notepad $Profile
and add the following:
Enable-PowerType
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -PredictionViewStyle ListView
Disable-PowerType
Remove-Module PowerType
Uninstall-Module PowerType
Get-PowerTypeStatus # To see if the background service is running as intended
Get-PowerTypeHistory # Used to see if any suggestions caused a exception
This project is far from done but has the aim to provide autocomplete for common cli tools like git, npm, adb, docker, dotnet, node and many more while using powershell.
This is heavily inspired by Fish shell and fig autocomplete, some dictionaries are generated from the specifications in Carapace-bin big thanks to rsteube for his patience and help!