Re-order readmes to prioritise package managers

This commit is contained in:
Félix Saparelli 2022-09-07 12:24:44 +12:00
parent b2de641f20
commit e9d24688e1
No known key found for this signature in database
3 changed files with 25 additions and 34 deletions

View File

@ -41,10 +41,10 @@ More usage examples: [in the CLI README](./crates/cli/#usage-examples)!
<a href="https://repology.org/project/watchexec/versions"><img align="right" src="https://repology.org/badge/vertical-allrepos/watchexec.svg" alt="Packaging status"></a>
- As pre-built binary package: [from Github](https://github.com/watchexec/watchexec/releases/latest), [from the website](https://watchexec.github.io/downloads/)
- With your package manager for Arch, Homebrew, Nix, Scoop, Chocolatey…
- With [your package manager](./doc/packages.md) for Arch, Homebrew, Nix, Scoop, Chocolatey…
- From binary with [Binstall](https://github.com/cargo-bins/cargo-binstall): `cargo binstall watchexec-cli`
- As [pre-built binary package from Github](https://github.com/watchexec/watchexec/releases/latest)
- From source with Cargo: `cargo install watchexec-cli`
- From binary with Binstall: `cargo binstall watchexec-cli`
All options in detail: [in the CLI README](./crates/cli/#installation)
and [in the manual page](./doc/watchexec.1.ronn).

View File

@ -97,49 +97,39 @@ On Windows, you may prefer to use Powershell:
## Installation
### First-party
### Package manager
#### Pre-built
Watchexec is in many package managers. A full list of [known packages](../../doc/packages.md) is available,
and there may be more out there! Please contribute any you find to the list :)
Use the download section on [Github](https://github.com/watchexec/watchexec/releases/latest) or [the website](https://watchexec.github.io/downloads/) to obtain the
package appropriate for your platform and architecture, extract it, and place it in your `PATH`.
Common package managers:
- Alpine: `$ apk add watchexec`
- ArchLinux: `$ pacman -S watchexec`
- Nix: `$ nix-shell -p watchexec`
- Homebrew on Mac: `$ brew install watchexec`
- Chocolatey on Windows: `#> choco install watchexec`
### [Binstall](https://github.com/cargo-bins/cargo-binstall)
$ cargo binstall watchexec-cli
### Pre-built binaries
Use the download section on [Github](https://github.com/watchexec/watchexec/releases/latest)
or [the website](https://watchexec.github.io/downloads/) to obtain the package appropriate for your
platform and architecture, extract it, and place it in your `PATH`.
There are also Debian/Ubuntu (DEB) and Fedora/RedHat (RPM) packages.
Checksums and signatures are available.
#### Cargo (from source)
### Cargo (from source)
Only the latest Rust stable is supported, but older versions may work.
$ cargo install watchexec-cli
#### [Binstall](https://github.com/ryankurte/cargo-binstall)
$ cargo binstall watchexec-cli
### Third-party
These are provided by third parties, caveat emptor!
#### macOS
- Homebrew: `$ brew install watchexec`
- Nix/NixOS: `$ nix-env -iA nixpkgs.watchexec`
- Webi: `$ curl -sS https://webinstall.dev/watchexec | bash`
#### Linux
- ArchLinux: `$ pacman -S watchexec`
- Nix/NixOS: `$ nix-env -iA nixpkgs.watchexec`
- Webi: `$ curl -sS https://webinstall.dev/watchexec | bash`
#### Windows
- Scoop: `#> scoop install watchexec`
- Chocolatey: `#> choco install watchexec`
- Webi: `#> curl.exe -A MS https://webinstall.dev/watchexec | powershell`
## Shell completions
Currently available shell completions:

View File

@ -18,3 +18,4 @@
| Windows | Scoop | [`watchexec`](https://github.com/ScoopInstaller/Main/blob/master/bucket/watchexec.json) | official | `scoop install watchexec` |
| _Any_ | Crates.io | [`watchexec-cli`](https://crates.io/crates/watchexec-cli) | first-party | `cargo install watchexec-cli` |
| _Any_ | Binstall | [`watchexec-cli`](https://crates.io/crates/watchexec-cli) | first-party | `cargo binstall watchexec-cli` |
| _Any_ | Webi | [`watchexec`](https://webinstall.dev/watchexec/) | third-party | varies (see webpage) |