Skip to content

Installation

Requires Go 1.21+ when building from source or using go install.


Homebrew (macOS and Linux)

brew tap trep-dev/homebrew-trep https://github.com/trep-dev/trep
brew install trep

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

go install github.com/trep-dev/trep/cmd/trep@latest

Scoop (Windows)

scoop bucket add trep https://github.com/trep-dev/scoop-bucket
scoop install trep

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:

trep completion bash > /etc/bash_completion.d/trep

zsh:

trep completion zsh > "${fpath[1]}/_trep"

fish:

trep completion fish > ~/.config/fish/completions/trep.fish

PowerShell:

trep completion powershell | Out-String | Invoke-Expression