File: sensible-pager

package info (click to toggle)
debianutils 1.13.3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 148 kB
  • ctags: 35
  • sloc: ansic: 588; sh: 312; makefile: 50
file content (7 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
#!/bin/bash
shopt -s execfail
exec ${PAGER:-pager} "$@"
exec more "$@"
echo "Couldn't find a pager!" 1>&2
echo "Set the \$PAGER environment variable to your desired pager." 1>&2
exit 1