aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-03-11 19:43:15 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-03-11 19:43:15 -0400
commit8e43e4eaed7d20a7bf80c4255503bdd1dd7dff86 (patch)
tree98d33649af5b7ff23eaa2c106d645cf58c750ecf /mkshrc
parent82393aaa54e7b0f06ab07b19d410dc958f592f6c (diff)
downloaddotfiles-8e43e4eaed7d20a7bf80c4255503bdd1dd7dff86.tar.gz
dotfiles-8e43e4eaed7d20a7bf80c4255503bdd1dd7dff86.tar.xz
More efficient pager set line
Diffstat (limited to 'mkshrc')
-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";