O manual (para meu less
, versão 444) diz:
Options are also taken from the environment variable "LESS". For exam‐
ple, 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
On MS-DOS, you don't need the quotes, but you should replace any per‐
cent signs in the options string by double percent signs.
The environment variable is parsed before the command line, so command
line options override the LESS environment variable.
On MS-DOS, you don't need the quotes, but you should replace any per‐
cent signs in the options string by double percent signs.
The environment variable is parsed before the command line, so command
line options override the LESS environment variable. If an option
appears in the LESS variable, it can be reset to its default value on
the command line by beginning the command line option with "-+".
Então, eu verificaria se a variável de ambiente LESS
poderia estar definida em algum lugar, em seus "arquivos de ponto" de shell, talvez. Além disso, less -+i
deve redefinir o -i
para seu padrão (que faz distinção entre maiúsculas e minúsculas). Se isso trouxer de volta a diferenciação de maiúsculas e minúsculas, então você poderia apenas alias less=less -+i
, talvez junto com alias lessi=less -i
.