microsoft/PowerToys

Remove duplicates from PATH environment variables

開放

#40,402 建立於 2025年7月4日

 (8 則留言) (0 個反應) (0 位負責人)C# (7,978 個分叉)batch import
Help WantedIdea-EnhancementProduct-Environment Variables

倉庫指標

星標
 (133,154 顆星)
PR 合併指標
 (平均合併 14天 20小時) (30 天內合併 117 個 PR)

描述

Description of the new feature / enhancement

When using the Environment Variables PowerToy recently it made editing the path an absolute breeze. However I noticed that a utility that I use, adds itself to the PATH environment variable every time it updates. I found myself looking for a "remove duplicates" option, but it was missing.

When using "Edit Variable" on a PATH, there is a little "..." menu item, which pops up some options, "Move Up, Move Down, Delete, Insert Before, Insert After", adding "Remove Duplicate" to this list would be very handy.

Scenario when this would be used?

When working with a PATH, and using "Edit Variable". It would keep the first occurring instance the then remove all subsequent, identical paths. Doing this manually is error prone and something that the utility could easily do for me.

Supporting information

No response

貢獻者指南