add webinstall instructions and Windows 10 notes
This commit is contained in:
parent
12f8b86bbe
commit
472d7bda0f
30
README.md
30
README.md
|
@ -1,6 +1,6 @@
|
||||||
# [pathman](https://git.rootprojects.org/root/pathman)
|
# [pathman](https://git.rootprojects.org/root/pathman)
|
||||||
|
|
||||||
Manage PATH on Windows, Mac, and Linux with various Shells
|
Manage PATH on **Windows 10**, **Mac**, and **Linux** with various Shells
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pathman list
|
pathman list
|
||||||
|
@ -10,12 +10,34 @@ pathman version
|
||||||
pathman help
|
pathman help
|
||||||
```
|
```
|
||||||
|
|
||||||
Windows: stores PATH in the registry.
|
Where is the PATH managed?
|
||||||
|
|
||||||
Mac & Linux: stores PATH in `~/.config/envman/PATH.sh`
|
- **Windows 10**: stores `PATH` in the registry.
|
||||||
|
- **Mac** & **Linux**: stores `PATH` in `~/.config/envman/PATH.env`
|
||||||
|
|
||||||
|
Note for **Windows 10** users: due to differences in how `cmd.exe`, PowerShell, and `pathman` use and interpret strings, spaces, paths, and variables, you'll get more consistent results if you:
|
||||||
|
|
||||||
|
- Use `~` rather than `%USERPROFILE%` or `$Env:USERPROFILE`
|
||||||
|
- Use `/` rather than `\` for delimiting paths
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
**Mac**, **Linux**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -s https://webinstall.dev/pathman | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
**Windows 10**:
|
||||||
|
|
||||||
|
This can be run from `cmd.exe` or PowerShell (`curl.exe` is a native part of Windows 10).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl.exe -sA "MS" https://webinstall.dev/pathman | powershell
|
||||||
|
```
|
||||||
|
|
||||||
|
### Manual Install
|
||||||
|
|
||||||
1. [Download](#downloads)
|
1. [Download](#downloads)
|
||||||
2. Add to `PATH`
|
2. Add to `PATH`
|
||||||
|
|
||||||
|
@ -30,7 +52,7 @@ npm install -g pathman
|
||||||
```cmd
|
```cmd
|
||||||
mkdir %userprofile%\bin
|
mkdir %userprofile%\bin
|
||||||
move pathman.exe %userprofile%\bin\pathman.exe
|
move pathman.exe %userprofile%\bin\pathman.exe
|
||||||
%userprofile%\bin\pathman.exe add ~\bin
|
%userprofile%\bin\pathman.exe add ~/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Mac, Linux, etc
|
#### Mac, Linux, etc
|
||||||
|
|
Loading…
Reference in New Issue