Installing ZUnit

Before you start using ZUnit, you’ll first need to install it on your system. There is a growing number of different ways to install ZUnit.


Installing with Zulu will handle building ZUnit from source, and installing all dependencies for you.

zulu install zunit

Installing with zplug

ZUnit and its dependencies can all be installed with zplug.

zplug 'molovo/revolver', \
  as:command, \
zplug 'zunit-zsh/zunit', \
  as:command, \
  use:zunit, \

Installing with Homebrew

ZUnit and its dependencies can all be installed with Homebrew.

brew install zunit-zsh/zunit/zunit

Installing Manually

To install manually, install the dependencies, and then download the ZUnit executable straight into your $path.

# Install revolver
curl -L > /usr/local/bin/revolver

# Install ZUnit into $path
curl -L > /usr/local/bin/zunit

# Optional, install ZUnit ZSH completion into $fpath
curl -L > "${fpath[1]}/_zunit"

Building From Source

To build ZUnit from source, once you’ve installed the dependencies just clone the git repository and run the included build.zsh script. Once done, copy the zunit executable to somewhere in your $path.

# Install revolver
curl -L > /usr/local/bin/revolver

# Build ZUnit from source
git clone
cd zunit

# Copy zunit into $path
cp zunit /usr/local/bin

# Optional, copy ZUnit ZSH completion into $fpath
cp zunit.zsh-completion "${fpath[1]}/_zunit"