PowerShell completions installed by Scoop
Finding Scoop's Hidden Completion Scripts with PowerShell I like Scoop . It's a clean, no-admin-required package manager for Windows, and it stays out of your way. One thing I ran into, though: some apps ship a tab-completion script alongside the binary, and there's currently no built-in way to know it's there. The itch Some Scoop packages bundle a completion script alongside the binary. Once…
PowerShell completions can be installed by the Scoop package manager for Windows, a clean and no-admin-required installer. Some apps bundled with Scoop contain tab-completion scripts, but there's no built-in way to discover them. The Get-ScoopCompletions PowerShell function searches the Scoop apps directory for completion scripts by convention, which are typically named with an underscore prefix (_*.ps1).
This function returns the paths to all the discovery scripts found. Then, the Enable-ScoopCompletions function sources the returned scripts to make the completions available. The function handles permission quirks and half-installed packages gracefully. This solution addresses the gap left by Scoop's lack of a built-in way to index every file inside installed packages.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.