changeset 395:c01d272af466

Moved less configuration declaration to environment variable.
author Edho Arief <edho@myconan.net>
date Tue, 04 Sep 2012 10:22:46 +0700
parents 7833673f4860
children 657f787fbae8
files rc/bashrc rc/cshrc
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Sat Jun 02 17:07:57 2012 +0700
+++ b/rc/bashrc	Tue Sep 04 10:22:46 2012 +0700
@@ -191,8 +191,8 @@
 fi
 
 if command -v less > /dev/null 2>&1; then
-  alias less="less -Rins"
-  export PAGER="less -Rins"
+  export PAGER=less
+  export LESS='-MRXgij15$nsz-2'
 fi
 
 rm -If "/tmp/.nonexistent.$(date '+%Y%m%d%H%M%S')" 2> /dev/null && alias rm="rm -I"
--- a/rc/cshrc	Sat Jun 02 17:07:57 2012 +0700
+++ b/rc/cshrc	Tue Sep 04 10:22:46 2012 +0700
@@ -30,6 +30,7 @@
 
 setenv EDITOR vi
 setenv PAGER less
+setenv LESS '-MRXgij15$nsz-2'
 setenv BLOCKSIZE K
 setenv LC_COLLATE C
 setenv LANG en_US.UTF-8