• Stars
    star
    109
  • Rank 309,106 (Top 7 %)
  • Language
    PowerShell
  • License
    MIT License
  • Created over 2 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Autocomplete for PowerShell
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

Upgrade

Disable-PowerType
Remove-Module PowerType
Install-Module PowerType -AllowPrerelease -Force

Restart powershell

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.

Contribute

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)

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!