Skip to content

Autocomplete not working on powershell on Windows #2482

@xdhmoore

Description

@xdhmoore

Describe the bug
On powershell on Windows the autocomplete doesn't appear to be working.

Version of pwsh: 7.5.3 (core)
Version of yq: 4.46.1
Operating system: Windows 11
Installed via: winget

Command
The command you ran:

PS 4:31 PM ~\Desktop> yq shell-completion powershell > yq-completion.ps1
PS 4:31 PM ~\Desktop> . .\yq-completion.ps1
PS 4:31 PM ~\Desktop> yq she<TAB>

Actual behavior
Nothing happens. The <TAB> does not trigger an autocomplete

Expected behavior
When I press <TAB> in this context, it should autocomplete, probably to yq shell-completion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions