Skip to content
hml7Public

About

A cat(1) clone made as a recreational programming project.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hat logo
A cat(1) clone made as a recreational programming project.

How to use • Installation

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.

How to use

Display a single file on the terminal

bat test.txt

Installation

From source

To build hat from source, you need:

  • Hare and its dependencies (such as qbe)
  • scdoc, only if you want the man page
  • make
  • git, optional: the build uses it to derive the version number, and falls back to dev without it

Then build and install:

git clone https://github.com/hml7/hat.git hat
cd hat
make
sudo make install

To install without root, point PREFIX at your home directory:

make install PREFIX=$HOME/.local

Make sure ~/.local/bin is on your PATH. Use the same PREFIX when uninstalling:

sudo make uninstall

About

A cat(1) clone made as a recreational programming project.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages