在Mac下用Pygments给终端cat加颜色

七 29th, 2011

1. sudo easy_install Pygments
2. emacs ~/.bash_profile
增加
# for syntax highlight
alias xcat=’pygmentize -f console’
3. xcat jquery.js

标签: ,
目前还没有任何评论.