less/less.sh
2015-08-21 22:16:14 +02:00

10 lines
244 B
Bash
Executable File

#!/bin/sh
# less initialization script (sh)
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