Skip to content

Instantly share code, notes, and snippets.

@smileart
Created January 9, 2014 15:44

Revisions

  1. smileart created this gist Jan 9, 2014.
    13 changes: 13 additions & 0 deletions catim
    Original 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
    }