summaryrefslogtreecommitdiffstats
path: root/bashrc/common/pager.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bashrc/common/pager.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/bashrc/common/pager.sh b/bashrc/common/pager.sh
new file mode 100644
index 0000000..a92031e
--- /dev/null
+++ b/bashrc/common/pager.sh
@@ -0,0 +1,13 @@
+# pager options
+
+# use less by default ...
+if hash less; then
+ export PAGER=less
+ export LESS="-R --ignore-case --long-prompt"
+fi
+
+# but user most, if available
+if hash most; then
+ export PAGER=most
+ export MANPAGER=most
+fi