PowerShell / PowerShell

PowerShell for every system!
https://microsoft.com/PowerShell
MIT License
43.55k stars 7.06k forks source link

Expand `~` to `$home` on Windows with tab completion #21529

Closed SteveL-MSFT closed 3 weeks ago

SteveL-MSFT commented 3 weeks ago

PR Summary

https://github.com/PowerShell/PowerShell/pull/19489 added some improvements to tab-completion, but one side effect is that on Windows, a ~ is retained instead of being expanded. Since ~ is not understood by native commands, this breaks many use cases.

This change only retains ~ on non-Windows systems.

PR Context

Fix https://github.com/PowerShell/PowerShell/issues/20750

PR Checklist

microsoft-github-policy-service[bot] commented 3 weeks ago

📣 Hey @SteveL-MSFT, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

Microsoft Forms
adityapatwardhan commented 1 week ago

Wait on a preview release before considering for 7.4