Created
January 9, 2014 15:44
Revisions
-
smileart created this gist
Jan 9, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # 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 }