summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/common/pager.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bashrc/common/pager.sh b/bashrc/common/pager.sh
index a92031e..454d37e 100644
--- a/bashrc/common/pager.sh
+++ b/bashrc/common/pager.sh
@@ -1,13 +1,13 @@
# pager options
# use less by default ...
-if hash less; then
+if hash less 2>&1 > /dev/null ; then
export PAGER=less
export LESS="-R --ignore-case --long-prompt"
fi
# but user most, if available
-if hash most; then
+if hash most 2>&1 > /dev/null ; then
export PAGER=most
export MANPAGER=most
fi