/PowerType

Autocomplete for PowerShell

Primary LanguagePowerShellMIT LicenseMIT

Logo

PowerType

Autocomplete for Powershell
· Request Dictionary · Request Feature · Report Bug ·

asciicast

PowerShell Gallery PowerShell Gallery GitHub license

unit tests Testspace tests Coverage Status Sonar Violations (short format)

Installation

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.

Requirements

Ensure that you are running PowerShell 7.2 and PSReadLine 2.2.0-beta4 or newer!

Auto enable in every session

Open your PowerShell Profile by running notepad $Profile and add the following:

Enable-PowerType
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -PredictionViewStyle ListView

Uninstall

Disable-PowerType
Remove-Module PowerType
Uninstall-Module PowerType

Troubleshooting

Get-PowerTypeStatus # To see if the background service is running as intended
Get-PowerTypeHistory # Used to see if any suggestions caused a exception

Progress

GitHub milestone GitHub milestone GitHub milestone GitHub milestone

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.

Acknowledgements

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!