AndydeCleyre / c.py

A replacement for [c]at with automatic syntax highlighting

Home Page:https://docs.sevenbyte.org/c.py/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

c.py

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.

Install

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.

About

A replacement for [c]at with automatic syntax highlighting

https://docs.sevenbyte.org/c.py/

License:MIT License


Languages

Language:Python 62.4%Language:Shell 37.6%