Tuesday, August 14, 2007

My OpenBSD way of having colored man pages.

Here is something you can put in your .bashrc file for colored man pages:

#
# My OpenBSD way of having colored man pages. Its kind of nasty.
alias vmore="/usr/local/share/vim/vim70/macros/less.sh"
function vman {
        manfiles=`man -w $1`
        for manfile in $manfiles;
        do
                col -b < $manfile | vmore -V0 -i NONE -c "set verbose=0 ft=man nomod nolist titlestring=MANPAGE" -
        done
}

No comments: