Skip to content

grex

Installs grex, a command-line tool for generating regular expressions from test cases, from a GitHub release binary.

Terminal window
zi for \
from'gh-r' \
sbin'g*x -> grex' \
pemistahl/grex
  • from'gh-r' — downloads the release archive from GitHub Releases.
  • sbin'g*x -> grex' — creates a shim named grex pointing to the binary matching the glob g*x in the archive (requires zinit-annex-bin-gem-node). The glob avoids hardcoding platform-specific filenames.

The annex zdharma-continuum/zinit-annex-bin-gem-node must be loaded before this recipe.

Terminal window
# prerequisite — load once at the top of .zshrc
zinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node
zi for \
from'gh-r' \
sbin'g*x -> grex' \
pemistahl/grex