pscomplete
pscomplete copied to clipboard
Cross-platform custom powershell completions
PsComplete
cross-platform custom powershell autocomplete
demo
https://github.com/ieviev/pscomplete/assets/36763595/06742872-b7dd-465e-a5a5-8c2d928421b9
installation
(available at https://www.powershellgallery.com/packages/PsComplete)
install-module -name pscompleteimport-module -name pscomplete- After that Tab is bound to the expander for this session
Additionally:
- Add
import-module -name pscompleteto your profile (ex.nano $PROFILE/notepad $PROFILE) to have it permanently on - completion can also be invoked programmatically with
invoke-guipscomplete
features
- Performs well up to 100 000+ completions
- Press Tab / Enter to pick the highlighted command
configuration
the top-right context info in the demo is not on by default and can be turned on by adding this to your profile
$PsCompleteSettings.TopRightHUDEnabled = $true; # off by default