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
Install-Module PowerType -AllowPrerelease -Force
Restart powershell
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.
If you wish to contribute the following would be greatly appreciated
- Give this repository a Star
- Spread the word
- Create a pull request with a new Dictionary (See npm for a simple example)
- Sponsor using the button above (Only do this if you can afford it)
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!