Skip to content

Instantly share code, notes, and snippets.

@dmishh
Forked from smileart/catim
Created January 9, 2014 15:55
Show Gist options
  • Save dmishh/8336425 to your computer and use it in GitHub Desktop.
Save dmishh/8336425 to your computer and use it in GitHub Desktop.
# Install http://pygments.org/download/ to use this improved cat!
cat() {
if command -v pygmentize > /dev/null; then
pygmentize $1 > /dev/null 2>&1
if [ $? -eq 0 ]; then
pygmentize $1
else
command cat $1
fi
else
command cat $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment