Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Why doesn't READNULLCMD default to $PAGER?



On Wed, Oct 1, 2008 at 10:44, Nikolai Weibull <now@xxxxxxxx> wrote:

> I mean, I set PAGER because I don't want more(1) (or less(1) for that
> matter) to be invoked by most other programs that need a PAGER.

Off topic, but if you are using most instead of less just for color
support, you might find happiness with


    if [ $terminfo[colors] -ge 8 ]
    then
        export LESS_TERMCAP_mb=$'\E[01;31m'
        export LESS_TERMCAP_md=$'\E[01;31m'
        export LESS_TERMCAP_me=$'\E[0m'
        export LESS_TERMCAP_se=$'\E[0m'
        export LESS_TERMCAP_so=$'\E[01;44;33m'
        export LESS_TERMCAP_ue=$'\E[0m'
        export LESS_TERMCAP_us=$'\E[01;32m'
    fi


Richard



Messages sorted by: Reverse Date, Date, Thread, Author