Compare commits

..

No commits in common. "master" and "v0.5.2" have entirely different histories.

1 changed files with 78 additions and 51 deletions

129
README.md
View File

@ -1,6 +1,6 @@
# [pathman](https://git.rootprojects.org/root/pathman) # [pathman](https://git.rootprojects.org/root/pathman)
Manage PATH on **Windows 10**, **Mac**, and **Linux** with various Shells Manage PATH on Windows, Mac, and Linux with various Shells
```bash ```bash
pathman list pathman list
@ -10,34 +10,12 @@ pathman version
pathman help pathman help
``` ```
Where is the PATH managed? Windows: stores PATH in the registry.
- **Windows 10**: stores `PATH` in the registry. Mac & Linux: stores PATH in `~/.config/envman/PATH.sh`
- **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`
@ -52,7 +30,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
@ -65,39 +43,88 @@ pathman add ~/.local/bin
## Downloads ## Downloads
[Webi](https://webinstall.dev/pathman) (<https://webinstall.dev/pathman>) is the preferred install method, ### MacOS
but you can also download from [Git Releases](https://git.rootprojects.org/root/pathman/releases):
<https://git.rootprojects.org/root/pathman/releases>.
MacOS (including Apple Silicon M1), Linux, Raspberry Pi: MacOS (darwin): [64-bit Download ](https://rootprojects.org/pathman/dist/darwin/amd64/pathman)
```bash ```
tar xvf pathman-v*.tar.gz curl https://rootprojects.org/pathman/dist/darwin/amd64/pathman -o pathman
chmod a+x ./pathman chmod +x ./pathman
./pathman --help
``` ```
Windows 10: ### Windows
```bash <details>
tar.exe xvf pathman-v*.zip <summary>See download options</summary>
.\pathman.exe --help Windows 10: [64-bit Download](https://rootprojects.org/pathman/dist/windows/amd64/pathman.exe)
```
powershell.exe $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://rootprojects.org/pathman/dist/windows/amd64/pathman.exe -OutFile pathman.exe
``` ```
### Supported Platforms Windows 7: [32-bit Download](https://rootprojects.org/pathman/dist/windows/386/pathman.exe)
- MacOS ```
- Apple Silicon M1 powershell.exe "(New-Object Net.WebClient).DownloadFile('https://rootprojects.org/pathman/dist/windows/386/pathman.exe', 'pathman.exe')"
- Intel x86_64 ```
- Windows 10, 8, 7
- Linux </details>
- amd64 / x86_64
- 386 ### Linux
- Raspberry Pi (Linux ARM)
- RPi 4 (64-bit armv8) <details>
- RPi 3 (armv7) <summary>See download options</summary>
- ARMv6
- RPi Zero (armv5) Linux (64-bit): [Download](https://rootprojects.org/pathman/dist/linux/amd64/pathman)
```
curl https://rootprojects.org/pathman/dist/linux/amd64/pathman -o pathman
chmod +x ./pathman
```
Linux (32-bit): [Download](https://rootprojects.org/pathman/dist/linux/386/pathman)
```
curl https://rootprojects.org/pathman/dist/linux/386/pathman -o pathman
chmod +x ./pathman
```
</details>
### Raspberry Pi (Linux ARM)
<details>
<summary>See download options</summary>
RPi 4 (64-bit armv8): [Download](https://rootprojects.org/pathman/dist/linux/armv8/pathman)
```
curl https://rootprojects.org/pathman/dist/linux/armv8/pathman -o pathman`
chmod +x ./pathman
```
RPi 3 (armv7): [Download](https://rootprojects.org/pathman/dist/linux/armv7/pathman)
```
curl https://rootprojects.org/pathman/dist/linux/armv7/pathman -o pathman
chmod +x ./pathman
```
ARMv6: [Download](https://rootprojects.org/pathman/dist/linux/armv6/pathman)
```
curl https://rootprojects.org/pathman/dist/linux/armv6/pathman -o pathman
chmod +x ./pathman
```
RPi Zero (armv5): [Download](https://rootprojects.org/pathman/dist/linux/armv5/pathman)
```
curl https://rootprojects.org/pathman/dist/linux/armv5/pathman -o pathman
chmod +x ./pathman
```
</details>
# CLI Help (API) # CLI Help (API)