Friday, April 18, 2008

adding 256 color support to urxvt on gentoo

yes, 256-color vim colorschemes are actually usable with urxvt (e.g. railcasts)

here's how:
copy rxvt-unicode ebuild and files to your portage overlay
download rxvt-unicode tarball (i've used 9.02): emerge -f rxvt-unicode
extract doc/urxvt-8.2-256color.patch from tarball, and place it to x11-terms/rxvt-unicode/files/ subdirectory
create manifest: ebuild rxvt-unicode-9.02.ebuild digest
add "autotools" word to inherit: inherit flag-o-matic autotools
add following lines to "src_unpack" function:
epatch ${FILESDIR}/urxvt-8.2-256color.patch
eautoconf
add following line to econf call:
--enable-xterm-colors=256 \

do "emerge rxvt-unicode"

you're there.

0 comments: