You are not logged in.

#1 2012-06-23 22:09:59

ayr0
Member
Registered: 2010-08-12
Posts: 85

configuring less

Hi,

I've been trying to configure less to be less annoying.  The sources that I've read online note that less is configured by setting an environment variable with the desired options.
The options that I've set so far are "-RSiMg"

An option that I want to set is -F which will terminate less if the output fits on one screen.  However, when I add "F" to the options list, less will not output anything if the output fits on one screen.

Any idea of how to fix this would be appreciated.  It is kind of distracting when less clears my screen to display only a few lines at the bottom.

Thanks.

Offline

#2 2012-06-23 22:24:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,427

Re: configuring less

I'm not sure, but it may be working as intended; 'less' is not 'cat' so 'less -F' will show the contents of a short file for a split second and terminate, returning to the shell prompt.

Offline

#3 2012-06-23 23:09:08

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: configuring less

Try adding "-X". This may produce unwanted side-effects but you should try it. That's the only option I have set and if I do "less -F" on a short file, it displays it fine (it is just like using cat).


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#4 2012-06-24 13:10:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,427

Re: configuring less

'less -X' sounds exactly like what ayr0 wants ... and I may start using it too ;P
Thanks, cfr :-)

Offline

#5 2012-10-04 01:09:12

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,552
Website

Re: configuring less

Closing as it is asked again here: https://bbs.archlinux.org/viewtopic.php?id=150034


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB