dots/commonsh/10_pager
David Majnemer ba2f3cfb85 huge changes and refactoring done:
-   split zsh into many files
-   add bash support
-   cleaned up lots of stuff, created a commonsh folder for common stuff between bash and zsh
-   commonsh supports an order of execution, deliminated by filename. This is to enforce dependencies
All of these changes were needed so that we could sensibly continue to extend the system
2009-01-02 18:37:27 -05:00

17 lines
435 B
Text
Executable file

for PAGER in less more pg ; do
(type -p $PAGER &> /dev/null) && break
done
export PAGER
# if we are in less, we can set some options and use lesspipe
if [[ $PAGER = "less" ]] ; then
# lesspipe can go by either lesspipe or lesspipe.sh
for lesspipe in lesspipe lesspipe.sh ; do
if (type -p $lesspipe &> /dev/null) ; then
eval $(SHELL=/bin/sh $lesspipe) && break
fi
done
# let less be case insensitive
export LESS='-iR'
fi