Skip to content

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathsetter

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.

Features

  • 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\bin directory in your home folder and add it to your $PATH.

Installation

Clone this repository and build the tool using Cargo:

git clone https://github.com/wt-7/pathsetter
cd pathsetter
cargo build --release

The compiled binary will be located at target/release/path.exe.

Usage

path <COMMAND>

Commands

  • 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\bin in your home directory, add it to your $PATH, and copy Pathsetter there.

    path init

Notes

  • Changes to $PATH are 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.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages