summaryrefslogtreecommitdiffstats
path: root/source/a/etc/_etc/etc/profile.new
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/etc/_etc/etc/profile.new')
-rw-r--r--source/a/etc/_etc/etc/profile.new9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/a/etc/_etc/etc/profile.new b/source/a/etc/_etc/etc/profile.new
index f716d786e..9cfc74aa0 100644
--- a/source/a/etc/_etc/etc/profile.new
+++ b/source/a/etc/_etc/etc/profile.new
@@ -5,7 +5,14 @@
export MINICOM="-c on"
export HOSTNAME="`cat /etc/HOSTNAME`"
export LESSOPEN="|lesspipe.sh %s"
-export LESS="-M"
+# 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.
+#export LESS="-M -R"
# If the user doesn't have a .inputrc, use the one in /etc.
if [ ! -r "$HOME/.inputrc" ]; then