Tree @0bfc38a8-11ae-4887-b947-3cb627bbbe34/main (Download .tar.gz)
- AnyEvent-I3
- contrib
- debian
- docs
- etc
- i3-config-wizard
- i3-dump-log
- i3-input
- i3-msg
- i3-nagbar
- i3bar
- include
- libi3
- m4
- man
- parser-specs
- share
- src
- testcases
- travis
- .clang-format
- .editorconfig
- .travis.yml
- configure.ac
- DEPENDS
- generate-command-parser.pl
- i3-dmenu-desktop
- i3-migrate-config-to-v4
- i3-save-tree
- i3-sensible-editor
- i3-sensible-pager
- i3-sensible-terminal
- I3_VERSION
- LICENSE
- logo.svg
- Makefile.am
- PACKAGE-MAINTAINER
- pseudo-doc.doxygen
- README.md
- RELEASE-NOTES-4.18.1
- release.sh
i3-sensible-pager @0bfc38a8-11ae-4887-b947-3cb627bbbe34/main — raw · history · blame
#!/bin/sh
#
# This code is released in public domain by Han Boetes <[email protected]>
# This script tries to exec a pager by trying some known pagers if $PAGER is
# not set.
#
# Distributions/packagers can enhance this script with a
# distribution-specific mechanism to find the preferred pager.
# Hopefully one of these is installed (no flamewars about preference please!):
# We don't use 'more' because it will exit if the file is too short.
# Worst case scenario we'll open the file in your editor.
for pager in "$PAGER" less most w3m pg i3-sensible-editor; do
if command -v "$pager" > /dev/null 2>&1; then
exec "$pager" "$@"
fi
done
|