diff options
Diffstat (limited to 'source/a/less/less.csh')
-rw-r--r-- | source/a/less/less.csh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/a/less/less.csh b/source/a/less/less.csh new file mode 100644 index 000000000..7c13543bf --- /dev/null +++ b/source/a/less/less.csh @@ -0,0 +1,18 @@ +# Set profile variables for less and lesspipe.sh. + +# Setting a default $LESS was something inherited from SLS many years ago, +# but apparently the previous setting of "-M" causes display issues with +# some programs (i.e. git log). Adding "-R" as well fixes this, but some +# folks have concerns about the security of this option (I think it's +# actually "-r" that's the dangerous one). Anyway, it might be best to just +# leave this unset by default. Uncomment it if you like, or set up your +# own definition or aliases on a per-account basis. +#setenv LESS "-M -R" + +# Use lesspipe.sh (see man lesspipe): +setenv LESSOPEN "|lesspipe.sh %s" + +# Suppress the "informal messages" in the first line of the lesspipe output. +# If you like these, comment this line out. +setenv LESSQUIET true + |