#env-var #windows #variables #sorting #path #environment #system

app rust-env-sorter

A utility to sort environment variables on Windows

2 releases

0.1.1 May 25, 2024
0.1.0 May 25, 2024

#656 in Filesystem

Apache-2.0

22KB
436 lines

Rust Env Sorter ๐Ÿš€

Overview

The Rust Env Sorter is a utility tool designed to sort the Windows environment PATH variable. It helps in organizing the PATH by sorting its entries, making it easier to detect duplicates. This tool is particularly useful for programmers who appreciate a well-organized environment, such as those with ADHD who might benefit from reduced clutter in their system paths. ๐Ÿงน

Features

  • Sorts both User and Machine environment PATH variables. ๐Ÿ”„
  • Requires administrative privileges to modify the Machine PATH. ๐Ÿ”
  • Simple command-line interface to confirm before making changes. ๐Ÿ’ป

Prerequisites

This program is only supported on Windows. ๐ŸชŸ It requires Rust and administrative privileges to run effectively.

Installation

To install Rust Env Sorter, you need to have Rust installed on your machine. If you don't have Rust installed, you can install it from the official Rust site. ๐Ÿฆ€

Once Rust is installed, you can install Rust Env Sorter by cloning the repository and building the project:

cargo install rust-env-sorter --locked

Usage

  1. Open a command prompt as Administrator. ๐Ÿ‘จโ€๐Ÿ’ป
  2. Run the executable:
env-sorter-rs // run it from everywhere
  1. Follow the on-screen prompts to sort the PATH variables. ๐Ÿ“‹

Contributing

Contributions are welcome! If you have suggestions or improvements, please feel free to fork the repository and submit a pull request. ๐Ÿค

Support

If you find this tool helpful, consider supporting by:

  • Starring this repository. โญ
  • Visiting fatihaziz.com for more tools and resources. ๐ŸŒ

Author

Thank you for using Rust Env Sorter! ๐Ÿ™

Dependencies

~3.5โ€“8.5MB
~75K SLoC