less/less.sh

10 lines
244 B
Bash
Raw Normal View History

2015-08-21 20:16:14 +00:00
#!/bin/sh
2007-02-07 12:55:35 +00:00
# less initialization script (sh)
2015-08-21 20:16:14 +00:00
if [ -x /usr/bin/lesspipe.sh ]; then
if [ -z "$LESSOPEN" ]; then
export LESSOPEN="/usr/bin/lesspipe.sh %s"
else
export LESSOPEN="$LESSOPEN | /usr/bin/lesspipe.sh %s"
fi
fi