Skip to content

xbvuno/win-user-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

upath

Minimal PowerShell utility for managing the Windows User PATH.

Installation

Install upath using a single PowerShell command:

irm "https://raw.githubusercontent.com/xbvuno/win-user-path/main/install.ps1" | iex

and you're ready to use it

This installer executes a remote script using Invoke-RestMethod | Invoke-Expression. Always review the source before installing. Check What gets installed.

Features

  • Manage User PATH directly from the terminal
  • Prevents duplicate entries (case-insensitive normalization)
  • Safe add/remove operations
  • Instant session refresh without restarting the terminal
  • Lightweight, dependency-free PowerShell script

Behavior

  • User PATH only (no system PATH modifications)
  • Automatic normalization of paths
  • Duplicate prevention (case-insensitive)
  • Persistent changes via Windows environment variables
  • Instant session update with refresh

Usage

show help message

upath help

list user PATH entries

upath list

Add a new entry to the user PATH if it doesn’t already exist

upath add "C:\Tools"

remove an entry from the user PATH if it exists

upath remove "C:\Tools"

refresh PATH for the current session

upath refresh

What gets installed

upath is installed locally in:

%LOCALAPPDATA%\upath\

Core script:

%LOCALAPPDATA%\upath\upath.ps1

The installer automatically injects upath into your user path

License

ISC License

About

Minimal PowerShell utility for managing the Windows User PATH.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors