Can I get homebrew autocompletion in powershell?

483 Views Asked by At

I used to use zsh, but I've got some cross-platform scripts written in pwsh. As a macOS user, I use homebrew constantly. The thing bothers me most is that homebrew official doesn't provide pwsh autocompletion. How can I get one?

1

There are 1 best solutions below

3
On

Comes bundled with powershell 7. You need to import PSReadline in your powershell profile, then map a key to autocomplete. Latest versions of PS also have history and plugin based intellisense (with only one plugin for the latter), which also has to be enabled in your profile.