Manage PATH on Windows, Mac, and Linux with various Shells
Go to file
AJ ONeal 4267ac8731 add deps 2019-07-28 04:05:11 -06:00
envpath v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
tools v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
vendor add deps 2019-07-28 04:05:11 -06:00
winpath v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
.gitignore v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
LICENSE Initial commit 2019-07-22 04:21:08 +00:00
README.md v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
build-all.sh v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
go.mod v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
go.sum v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
pathman.go v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
pathman_unixes.go v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00
pathman_windows.go v0.5.0: initial publishable version 2019-07-28 04:04:53 -06:00

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