aristotelisch
3/25/2015 - 8:47 PM

centos-install-syntax-highlighting-in-less.sh

# Enable syntax-highlighting in less.
#
# First, add these two lines to ~/.bashrc
#     export LESSOPEN="| /opt/local/bin/src-hilite-lesspipe.sh %s"
#     export LESS=" -R "

sudo port install source-highlight
# Enable syntax-highlighting in less.
# Last tested on CentOS 6.3.
#
# First, add these two lines to ~/.bashrc
#     export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
#     export LESS=" -R "

sudo yum -y install boost boost-devel ctags

wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm
source-highlight-3.1.6-3.puias6.x86_64.rpm
sudo yum -y install source-highlight