Installation¶
Requires Go 1.21+ when building from source or using go install.
Homebrew (macOS and Linux)¶
Note
The Homebrew formula is updated automatically on each tagged release. If no release has been published yet, install via go install below.
go install¶
Scoop (Windows)¶
Pre-built binaries¶
Binaries for Linux, macOS (Intel and Apple Silicon), and Windows are published as GitHub Release assets on each tagged release. Download the archive for your platform from the Releases page and place the trep binary on your PATH.
Build from source¶
git clone https://github.com/trep-dev/trep
cd trep
go build -o trep ./cmd/trep/
# Optional: put on PATH
mv trep /usr/local/bin/
Shell completions¶
After installing, set up shell completions for the best experience.
bash:
zsh:
fish:
PowerShell: