Assuming you have Rust/Cargo installed, run this command in a terminal:
cargo install prek
It will make the prek command available in your PATH if you've allowed the PATH to be modified when installing Rust. cargo uninstall prek uninstalls.
prek
PATH
cargo uninstall prek
Back to the crate overview.