Commit | Line | Data |
---|---|---|
b20bfd83 MW |
1 | #! /bin/sh |
2 | ||
3 | set -e | |
4 | pager=${MDW_PAGER-less} | |
5 | [ -t 1 ] || TERM=dumb | |
6 | case "$PAGER,$TERM" in | |
7a24847d | 7 | mdw-pager,dumb | \ |
8f72c9d1 | 8 | mdw-pager,emacs | mdw-pager,emacs-grep) |
7a24847d | 9 | pager=cat;; |
b20bfd83 MW |
10 | mdw-pager,*);; |
11 | *,*) pager=$PAGER;; | |
12 | esac | |
13 | exec $pager "$@" |