mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-09-18 21:39:54 +00:00

- 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
17 lines
435 B
Text
Executable file
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
|