Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lucasgelfond/zerobrew/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Install zerobrew on macOS or Linux using the installation script.Prerequisites
The installer will check for and install the following if needed:curl- for downloading filesgit- for cloning the repository (source builds only)cargoand Rust toolchain (source builds only)
Quick install
Run the installation script
Download and execute the zerobrew installer:The installer will:
- Download the latest pre-built binaries for your platform (if available)
- Fall back to building from source if pre-built binaries are unavailable
- Install
zbandzbxbinaries to~/.local/bin - Set up environment variables and PATH configuration
Configure your shell
After installation, run the
export command that the installer prints, or restart your terminal:The installer automatically modifies your shell configuration files (
.zshrc, .bashrc, etc.) unless you use the --no-modify-path flag.Installation options
The installer supports several options for customization:Don’t modify PATH
Prevent the installer from modifying your shell configuration files:Install from local binaries
If you’ve already built zerobrew locally, you can install the binaries directly:View help
To see all available options:Installation directories
zerobrew uses the following directory structure:| Directory | Purpose | Default Location |
|---|---|---|
ZEROBREW_ROOT | Root directory for zerobrew data | /opt/zerobrew (macOS)$XDG_DATA_HOME/zerobrew (Linux) |
ZEROBREW_PREFIX | Symlink prefix for installed packages | Same as ZEROBREW_ROOT (macOS)$ZEROBREW_ROOT/prefix (Linux) |
ZEROBREW_BIN | Binary installation directory | $HOME/.local/bin |
ZEROBREW_DIR | Repository clone location | $HOME/.zerobrew |
Supported platforms
Pre-built binaries are available for:- macOS: ARM64 (Apple Silicon), x86_64 (Intel)
- Linux: ARM64, x86_64
Building from source
If you prefer to build from source or need a platform without pre-built binaries:Troubleshooting
Command not found after installation
Ifzb is not found after installation, ensure ~/.local/bin is in your PATH:
.zshrc, .bashrc, etc.) to make it permanent.
Build failures
If the source build fails, check that you have:- A recent version of Rust (run
rustup update) - Required system libraries (the installer will guide you)