I'm trying to colorize my man pages. I'd been using most as my pager to get 
this, but I decided to switch over to less and just use less termcap settings 
to get the same effect. I changed it over successfully on my systems where I 
use bash as my default shell, but I'm stuck as to how to do it with fish. 
Nothing I try seems to work.

On bash, I was able to just put the following in my .profile
LESS_TERMCAP_md=$'\E[1;31m';    export LESS_TERMCAP_md
LESS_TERMCAP_us=$'\E[1;32m';    export LESS_TERMCAP_us


In fish, this quoting style isn't there, and I'm not quite clear on what it 
does in bash, so I'm having a difficult time replicating the effect. The 
closest I could figure was not doing any quotes and just escaping all the funny 
characters:

set -U LESS_TERMCAP_us \e\[1\x3B32m
set -U LESS_TERMCAP_md \e\[1\x3B31m

I can see these entries in the output of set with no arguments, but when use 
less there's no effect.

Does anyone have any ideas?

-Stephen
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to