Fix PAGER.
authorIain Patterson <me@iain.cx>
Fri, 26 Nov 2010 15:38:21 +0000 (15:38 +0000)
committerIain Patterson <me@iain.cx>
Fri, 26 Nov 2010 15:41:31 +0000 (15:41 +0000)
Use "less -R" where less is available.

.profile.d/pager.bashrc

index dbcb3d6..0da0aa8 100644 (file)
@@ -1,8 +1,8 @@
 # profile-required: TERM.bashrc
 less=$(find_working -A less 2>/dev/null)
 if [ $? = 0 ]; then
-  export PAGER=less
-  export GIT_PAGER=$PAGER
+  export PAGER="less -R"
+  export GIT_PAGER="$PAGER"
   export LESSCHARSET=utf-8
 
   # Colours.