A small Awk script that prints input to standard output if it fits in the terminal window, otherwise opening a pager.
git clone https://github.com/NikitaIvanovV/catless
cd catless
sudo make install
Uninstall with sudo make uninstall
If you are an Arch Linux user, you can install
catless-git
AUR package.
yay -S catless-git
catless file
command | catless
catless respects $PAGER
environmental variable.