You are not logged in.

#1 2012-10-04 00:25:36

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

less options

Hi,

I've been playing with for awhile now and it has really got me frustrated.  I referring to the options for less.

I use less as my default pager, but it feels it has to clear the screen and commandeer my terminal everytime it runs.  I simply want it to page when output flows the terminal screen.  If it fits on one screen, just display the stuff and quit.  But less can't seem to figure this out.  I've tried various combinations of the options and none seem to work

I define the options in my zshrc file
export LESS="RSiMg"

the -F option seems to do what I want, but adding "F" to the option string, and less won't display anything at all.  Trying "e" and "E" don't work either.

Does anyone have this figured out?  What am I missing?  This has been annoying me ever since I reinstalled Arch about 6 months ago.

Last edited by ayr0 (2012-10-04 00:26:25)

Offline

#2 2012-10-04 00:29:40

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

Re: less options

You'd do better with a more descriptive title. Something like 'Options for 'less''


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2012-10-04 01:01:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: less options

alias less="less -FX"

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2012-10-04 01:04:19

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

Offline

#5 2012-10-04 01:04:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: less options

less reads options from the environment variable 'LESS' as well, e.g.

$HOME/.bashrc wrote:
export LESS=FX

Offline

#6 2012-10-04 01:08:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: less options

Thanks falconindy: nice tip.


ayr0 - please don't open multiple threads for the same question: https://wiki.archlinux.org/index.php/Fo … ss-Posting


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB