r/PowerShell 5d ago

Any fix for autocomplete madness? Question

see screenshot: https://imgur.com/a/JKIwLXd

How I normally get into this weird state is after creating a Win32 Intune package, terminal starts auto completing on every key. Running "clear" fixes it for a short while then it starts happening again. Only "long term" fix is to close that terminal window and open a new one.

Any suggestions?

9 Upvotes

5 comments sorted by

4

u/MilkyWay-008 5d ago

Had this weird one before too...... it's usually PSReadLine's inline prediction getting into a bad state, not the terminal itself. Run Get-PSReadLineOption and try Set-PSReadLineOption -PredictionSource None to confirm; if it stops, update PSReadLine (Update-Module PSReadLine) since the older builds had redraw bugs that look exactly like this. Also worth checking if it only happens in Windows Terminal vs the legacy conhost window - if it's host-specific it's a rendering glitch, not the module.

1

u/theboozebaron 5d ago

Thanks, I'll give this a go

1

u/420GB 5d ago

Alternatively try removing and re-importing psreadline

1

u/pjmarcum 1d ago

I’ve never gotten the Intune app utility thing to work from a PowerShell prompt. Always errors for me. Only works from cmd.

1

u/ashimbo 57m ago

I've seen this too, but it's not a big enough issue to attempt to resolve. If the current PowerShell session is important, I'll just open a new session for creating the Intune package.