diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-04-06 17:10:38 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-04-06 18:09:25 -0400 |
commit | 1baf50e0e76740f88f997e71e8bdfe2fb35be830 (patch) | |
tree | 05f7ff8ce79775ac703c6e0f0385295b42576b2a /sys-apps/less | |
parent | dev-vcs/git-remote-hg: add git-remote-hg-0.2 (diff) | |
download | gentoo-1baf50e0e76740f88f997e71e8bdfe2fb35be830.tar.gz gentoo-1baf50e0e76740f88f997e71e8bdfe2fb35be830.tar.bz2 gentoo-1baf50e0e76740f88f997e71e8bdfe2fb35be830.zip |
sys-apps/less: lesspipe: improve help text a bit
Diffstat (limited to 'sys-apps/less')
-rwxr-xr-x[-rw-r--r--] | sys-apps/less/files/lesspipe.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh index 6edaa3ceb452..d659e39e1374 100644..100755 --- 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" |