You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AJ ONeal
f3fc791ae7
|
5 years ago | |
---|---|---|
envpath | 5 years ago | |
tools | 5 years ago | |
vendor | 5 years ago | |
winpath | 5 years ago | |
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
build-all.sh | 5 years ago | |
go.mod | 5 years ago | |
go.sum | 5 years ago | |
pathman.go | 5 years ago | |
pathman_unixes.go | 5 years ago | |
pathman_windows.go | 5 years ago |
README.md
pathman
Manage PATH on Windows, Mac, and Linux with various Shells
pathman list
pathman add ~/.local/bin
pathman remove ~/.local/bin
Windows: stores PATH in the registry.
Mac & Linux: stores PATH in ~/.config/envman/PATH.sh
add
pathman add ~/.local/bin
Saved PATH changes. To set the PATH immediately, update the current session:
export PATH="/Users/me/.local/bin:$PATH"
remove
pathman remove ~/.local/bin
Saved PATH changes. To set the PATH immediately, update the current session:
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
list
pathman list
pathman-managed PATH entries:
$HOME/.local/bin
other PATH entries:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
Windows
You can use ~
as a shortcut for %USERPROFILE%
.
pathman add ~\.local\bin
The registry will be used, even when your using Node Bash, Git Bash, or MINGW.
build
git clone https://git.rootprojects.org/root/pathman.git
go mod tidy
go mod vendor
go generate -mod=vendor ./...
go build -mod=vendor
./pathman list