1
0
mirror of https://github.com/j178/prek.git synced 2026-04-03 17:34:03 +02:00
Files
prek/docs/installation.md
Kevin Gimbel 88c3c87954 Move docs to zensical (#1421)
* chore: slight formatting adjustments

* feat: use zensical

* chore: add uv to mise.toml

* docs: update snippets and snippet markers for includes

* chore: add prek to mise.toml; run prek

* fix: use snippet for changelog instead of symlink

Seems Zensical doesn't like symlinks, a snippet gets the same result

* chore: remove commented-out code

* chore: remove commented-out code; run prek
2026-01-20 19:44:15 +08:00

96 lines
1.5 KiB
Markdown

# Installation
prek provides multiple installation methods to suit different needs and environments.
## Standalone Installer
The standalone installer automatically downloads and installs the correct binary for your platform:
### Linux and macOS
--8<-- "README.md:linux-standalone-install"
### Windows
--8<-- "README.md:windows-standalone-install"
## Package Managers
### PyPI
--8<-- "README.md:pypi-install"
### Homebrew (macOS/Linux)
--8<-- "README.md:homebrew-install"
### mise
--8<-- "README.md:mise-install"
### npmjs
--8<-- "README.md:npmjs-install"
### Nix
--8<-- "README.md:nix-install"
### Conda
--8<-- "README.md:conda-forge-install"
### Scoop (Windows)
--8<-- "README.md:scoop-install"
### MacPorts (macOS)
--8<-- "README.md:macports-install"
### Install from Pre-Built Binaries
--8<-- "README.md:cargo-binstall"
## Build from Source
--8<-- "README.md:cargo-install"
## Download from GitHub Releases
--8<-- "README.md:pre-built-binaries"
## Updating
--8<-- "README.md:self-update"
For other installation methods, follow the same installation steps again.
## Shell Completion
prek supports shell completion for Bash, Zsh, Fish, and PowerShell. To install completions:
### Bash
```bash
COMPLETE=bash prek > /etc/bash_completion.d/prek
```
### Zsh
```bash
COMPLETE=zsh prek > "${fpath[1]}/_prek"
```
### Fish
```bash
COMPLETE=fish prek > ~/.config/fish/completions/prek.fish
```
### PowerShell
```powershell
COMPLETE=powershell prek >> $PROFILE
```