#!/bin/shcase "$1" in*.awk|*.groff|*.java|*.js|*.m4|*.php|*.pl|*.pm|*.pod|*.sh|\*.ad[asb]|*.asm|*.inc|*.[ch]|*.[ch]pp|*.[ch]xx|*.cc|*.hh|\*.lsp|*.l|*.pas|*.p|*.xml|*.xps|*.xsl|*.axp|*.ppd|*.pov|\*.diff|*.patch|*.py|*.rb|*.sql|*.ebuild|*.eclass)pygmentize -f 256 "$1";;.bashrc|.bash_aliases|.bash_environment)pygmentize -f 256 -l sh "$1";;*)grep "#\!/bin/bash" "$1" > /dev/nullif [ "$?" -eq "0" ]; thenpygmentize -f 256 -l sh "$1"elseexit 1fiesacexit 0
http://superuser.com/questions/117841/get-colors-in-less-command
http://pygments.org/
沒有留言:
張貼留言