git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d148b07
)
Fix PAGER.
author
Iain Patterson
<me@iain.cx>
Fri, 26 Nov 2010 15:38:21 +0000
(15:38 +0000)
committer
Iain 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
patch
|
blob
|
history
diff --git
a/.profile.d/pager.bashrc
b/.profile.d/pager.bashrc
index
dbcb3d6
..
0da0aa8
100644
(file)
--- a/
.profile.d/pager.bashrc
+++ b/
.profile.d/pager.bashrc
@@
-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.