"less" annoyance, filters html source

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
Subject: "less" annoyance, filters html source
On Wed, 2002-12-04 at 09:07, William Lindley wrote:
> On 4 Dec 2002, Craig White wrote:
> > why not just alias it
>
> how do i make an alias so the command:
>
>     $ less foo.html

>
> becomes
>
>     $ less foo.html:

>
> ? there doesn't seem to be a command line switch to control the behavior.
>

-----
less ~/.bashrc

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi


---
therefore, I would think...

alias less='less:' would work but I just tried it and it doesn't work...

from man less

Options are also taken from the environment variable "LESS". For
example, to avoid typing "less -options ..." each time less is invoked,
you might tell csh:

setenv LESS "-options"

or if you use sh:

LESS="-options"; export LESS

Craig