#path #cleaning #entries #cleaner #windows #duplicates #environment

app path-cleaner

A CLI program for cleaning up your windows path

1 unstable release

0.1.0 Apr 19, 2024

#3 in #cleaner

Download history 113/week @ 2024-04-15

113 downloads per month

MIT license

8KB
153 lines

🧹 Path Cleaner

If you've been using your PC for a few years, you've probably encountered a cluttered PATH variable with entries from uninstalled programs or outdated entries from program updates. Path Cleaner is a simple tool designed to help you quickly filter out duplicate and non-existent path entries.

πŸƒβ€β™‚οΈ Usage

  • Open/run path-cleaner.exe or put it into PATH and run path-cleaner in your terminal of choice.
  • Choose the scope (*requires admin privileges)
    • User -> cleans the current users PATH variable
    • System* -> cleans the global PATH variable
    • Both* -> cleans both the global & the current users PATH variable
  • That's itπŸ™Œ

πŸ€” What it does

Path Cleaner removes the following items from the requested scope:

  • Non-existant paths
  • Duplictes This process supports variable expansion (e.g. %WINDIR%->C:\Windows).

πŸ“ To-Do

  • Prefer path entries with more environment variables over constants

πŸ«‚ Feel free to contribute

Dependencies

~22–33MB
~462K SLoC