A replacement for [c]at with automatic syntax highlighting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

954 B

c.py is replacement for cat. c.py is written in a few lines of Python code and provides automatic syntax highlighting with pygments. Paging support is provided by a shell wrapper called c. See the manpages c(1) and c.py(1) for more information. A short introduction can be read here.


On Arch Linux there is an AUR package available. c.py can be installed using your favorite AUR helper, such as pacaur.

$ pacaur -S cpy

If you like installing the script the hard, manual and unsupported way you can just drop the c.py and c files somewhere into your $PATH. Make sure that the pygments library is installed for python3.