This project is read-only.


PSv3: Pointless "Set-Location/Set-LocationEx" auto-complete shows up when I start up a new session


I have a fairly complicated profile script, but PowerTab is currently the second-to-last command in it. However, whenever I start up PowerShell, I get a useless and annoying tab completion window that displays Set-Location and Set-LocationEx; I generally have to type some gibberish, hit Tab, and then Esc a few times to get rid of it.

What's up with this?


JasonMArcher wrote Apr 23, 2013 at 11:30 PM

This is a behavior change with PowerShell v3. It will request a tab expansion for "Set-Location" after the very first prompt comes up. I have a hack solution that should be safe, but may not work in future releases of PS.

JasonMArcher wrote Apr 23, 2013 at 11:33 PM

Fixed in changeset bd30a9d472f8.

freeflight wrote Jul 1, 2014 at 3:40 PM

I know this is an old thread but I too have this same issue and it has been bugging me.

This is a bit of a hack but at least fixed the annoying issue. it will change the way the tab expansion behaves though. Will only work if 3 or more items are available. changed value form 2 to 3


JohnL4 wrote Feb 5, 2015 at 5:24 PM

I downloaded the tip of the repository (I think that's what that "Download" link does in the Source browser) and it's not fixed, but I don't care at this point. I can just hit Return at the beginning of a session and move on with my life.