在Mac下用Pygments给终端cat加颜色
1. sudo easy_install Pygments
2. emacs ~/.bash_profile
增加
# for syntax highlight
alias xcat=’pygmentize -f console’
3. xcat jquery.js
1. sudo easy_install Pygments
2. emacs ~/.bash_profile
增加
# for syntax highlight
alias xcat=’pygmentize -f console’
3. xcat jquery.js