aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkshrc6
1 files changed, 1 insertions, 5 deletions
diff --git a/mkshrc b/mkshrc
index 5a55803..39bdd67 100644
--- a/mkshrc
+++ b/mkshrc
@@ -637,11 +637,7 @@ set_editor() {
alias e="$EDITOR"
}
set_pager() {
- if [ -x "$(which less)" ] ; then
- export EDITOR="$(which less)"
- elif [ -x "$(which more)" ] ; then
- export EDITOR="$(which more)"
- fi
+ export PAGER="$(which cat more less 2>/dev/null | tail -n1)"
}
set_lang() {
export CHARSET="$1";