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.
Stefan Tatschner f3dda3aaed Change shebang to /usr/bin/python3 5 years ago
man Fix formatting of options 5 years ago
.gitignore Add manpage c(1) 6 years ago
LICENSE Update (c) in LICENSE file 6 years ago
README.adoc Convert README to asciidoctor 5 years ago
c Support FreeBSD as well 5 years ago
c.py Change shebang to /usr/bin/python3 5 years ago
fuc c.py 0.5.2 5 years ago


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.