cat with syntax highlighting

pygmentize can be used to show text files on the text console with syntax highlighting. Add this to .profile to create the handy aliases pcat and pless:

alias pcat=pygmentize

function pless() {
    pcat "$1" | less -R
}
Ralf Ebert

Ralf Ebert is an independent software developer, technical writer and trainer. He makes apps for Mac OS X and iOS and builds software solutions for companies using Eclipse RCP and Ruby on Rails. He offers training courses for software developers and writes books and articles about software development.