For example, I would like to add completion to adb
so that when I hit Tab after adb
I can see sub-commands like shell
and install
. In Bash or Zsh the completion is always in separate file, so this is not an issue. How do I do similar thing in PowerShell (if ever possible)?
Asked
Active
Viewed 85 times
0

Franklin Yu
- 8,920
- 6
- 43
- 57
-
You can't. PowerShell uses the IntelliSense engine. You *could* create aliases, however – Maximilian Burszley Oct 24 '17 at 15:56
1 Answers
0
Use TabExpansion++.
There is precedent for using a script to generate completers for native commands (see here).
(The comment about PowerShell using Intellisense is incorrect.)

jazzdelightsme
- 457
- 3
- 14