commit: 1baf50e0e76740f88f997e71e8bdfe2fb35be830 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Wed Apr 6 21:10:38 2016 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Apr 6 22:09:25 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1baf50e0
sys-apps/less: lesspipe: improve help text a bit sys-apps/less/files/lesspipe.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh old mode 100644 new mode 100755 index 6edaa3c..d659e39 --- a/sys-apps/less/files/lesspipe.sh +++ b/sys-apps/less/files/lesspipe.sh @@ -251,18 +251,19 @@ elif [[ $1 == "-h" || $1 == "--help" ]] ; then Usage: lesspipe <file> lesspipe specific settings: - LESSCOLOR env - toggle colorizing of output (no/yes/always) + LESSCOLOR env - toggle colorizing of output (no/yes/always; default: no) LESSCOLORIZER env - program used to colorize output (default: code2color) LESSIGNORE - list of extensions to ignore (don't do anything fancy) You can create per-user filters as well by creating the executable file: ~/.lessfilter - One argument is passed to it: the file to display. + One argument is passed to it: the file to display. The script should exit 0 + to indicate it handled the file, or non-zero to tell lesspipe to handle it. To use lesspipe, simply add to your environment: export LESSOPEN="|lesspipe %s" - Run 'less --help' or 'man less' for more info + Run 'less --help' or 'man less' for more info. EOF elif [[ -d $1 ]] ; then ls -alF -- "$1"