
A cat(1) clone made as a recreational programming project.
Warning
hat is developed purely as a recreational project, so it takes its own approach rather than aiming to be a full cat replacement. Think of it as a prettier cat experience, not a drop-in replacement. It is still under development.
Long term, the goal is to support POSIX cat behavior, but that is not the case yet.
Display a single file on the terminal
bat test.txtTo build hat from source, you need:
- Hare and its dependencies (such as qbe)
- scdoc, only if you want the man page
makegit, optional: the build uses it to derive the version number, and falls back todevwithout it
Then build and install:
git clone https://github.com/hml7/hat.git hat
cd hat
make
sudo make installTo install without root, point PREFIX at your home directory:
make install PREFIX=$HOME/.localMake sure ~/.local/bin is on your PATH. Use the same PREFIX when uninstalling:
sudo make uninstall