moor

moor

a pager, like less, that needs no configuration to look right

curl -fsSL https://unflab.app/get | sh -s -- moor

Installs to ~/.local/bin. Add --prefix /usr/local/bin to
put it somewhere else, or --uninstall to remove it.

Why it’s here

No dependency problem to solve — it’s here so it installs the same way as everything else.

Details

Original package moor
Version 2.19.8
Licence BSD-2-Clause
Upstream https://github.com/walles/moor
Source v2.19.8.tar.gz
Version check moor --version
Download moor-2.19.8.macos-arm64.tgz

Built from that exact tarball, with its SHA-256 pinned in the
recipe. The binary links against nothing outside /usr/lib
and /System/, checked in CI before release.


moor is a pager, like less, meant to do the right thing with no
configuration: it syntax-highlights source code, shows ANSI-coloured
output such as git diff as it should look, searches and filters as you
type, and reads compressed files directly. It was called moar until
version 2.0.0.

moor file.txt
git log | moor
moor --help                  # options, and the keys it responds to

Using it as your pager

Installing it doesn’t make anything use it. To set it as your default
pager, and for man pages, add to your shell’s rc file:

export PAGER=~/.local/bin/moor
export MANPAGER=~/.local/bin/moor

Use whichever directory you installed into. macOS’s man uses PAGER
when MANPAGER is unset, so the first line alone covers both, unless
MANCOLOR is set, in which case man uses less -sR instead.

Install

./install.sh                      # into ~/.local/bin
./install.sh --prefix /usr/local/bin
./install.sh --uninstall

About this build

A single static binary built with CGO_ENABLED=0, so it links against
nothing but libSystem. The man page is included, as upstream asks of
packagers.

moar is installed as an alias for moor, if nothing else on your
machine already has that name, so existing PAGER=moar settings and
scripts keep working. Upstream’s own moar is a wrapper script that
prints a rename notice every time it runs; this alias is just the
binary.

Upstream publishes prebuilt macOS binaries too. This package exists so
moor installs the same way as everything else here, not because it
was hard to get.

Upstream

moor is Johan Walles’s work. unflab only compiles and packages it.