diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-03-11 19:43:15 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-03-11 19:43:15 -0400 |
| commit | 8e43e4eaed7d20a7bf80c4255503bdd1dd7dff86 (patch) | |
| tree | 98d33649af5b7ff23eaa2c106d645cf58c750ecf | |
| parent | 82393aaa54e7b0f06ab07b19d410dc958f592f6c (diff) | |
| download | dotfiles-8e43e4eaed7d20a7bf80c4255503bdd1dd7dff86.tar.gz dotfiles-8e43e4eaed7d20a7bf80c4255503bdd1dd7dff86.tar.xz | |
More efficient pager set line
| -rw-r--r-- | mkshrc | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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"; |
