Pathsetter is a simple command-line tool to help you manage your $PATH environment variable on Windows. With Pathsetter, you can easily add new directories to your $PATH, list all executables currently accessible, and initialize a user-local bin directory.
- Add to $PATH: Quickly add a new directory to your
$PATH. - List executables: Display all executables currently accessible in your
$PATH. - Initialize local bin: Set up a
.local\bindirectory in your home folder and add it to your$PATH.
Clone this repository and build the tool using Cargo:
git clone https://github.com/wt-7/pathsetter
cd pathsetter
cargo build --releaseThe compiled binary will be located at target/release/path.exe.
path <COMMAND>-
add <path>
Add the given directory to your$PATH.path add C:\my\custom\bin
-
list
List all executables currently accessible in your$PATH.path list
-
init
Initialize.local\binin your home directory, add it to your$PATH, and copy Pathsetter there.path init
- Changes to
$PATHare made in the Windows registry for the current user. You will need to restart your shell for changes to take effect. - Pathsetter is intended for Windows systems.