-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Choco tab completion does not work if .exe is present #2255
Comments
@Luk164 would you mind editing your issue and wrapping the profile code in a codefence? This will cause GitHub to format it as code and not markdown. A sample codefence:
The Based on what I can make out from the formatting, you say you've deactivated the chocolatey profile, but it looks like it's loaded on the second-last line. I can confirm that I'm able to reproduce this issue with I have found this article (https://docs.microsoft.com/en-us/dotnet/core/tools/enable-tab-autocomplete#powershell) on adding |
This was a workaround that helped me. You could add it to your
This allows the internal function
On PowerShell 7, I don't need to add the |
Yeah, the method we use is pretty ancient. I don't know if we're able to change how we're doing it until we drop support for PowerShell v2 though. At that point we can use newer methods of tab completion which shouldn't have this issue. That alias setting is a nice workaround though, and it might be worth adding to our tab completion / profile script to enable it by default. |
FWIW, Chocolatey tab completion is gone with PowerShell Core 7.4, which dropped support for
Maybe you can define both |
@yan12125 Thank you for the heads up here. Would you mind opening a new issue for this? |
What You Are Seeing?
When using choco in PWSH, I almost always use tab completion. For choco, this ends in choco.exe, but I noticed that tab completion for commands (i.e. choco install) does not work with the choco.exe.
What is Expected?
Tab completion should work with both choco and choco.exe commands
How Did You Get This To Happen? (Steps to Reproduce)
This is what my profile file looks like:
P.S.: Deactivated chocolatey profile because it was causing trouble for me. If this is problematic for some reason feel free to point it out.
The text was updated successfully, but these errors were encountered: