From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D54BD59CB1 for ; Wed, 6 Apr 2016 22:09:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 461AE21C0F6; Wed, 6 Apr 2016 22:09:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CD09821C0ED for ; Wed, 6 Apr 2016 22:09:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC0E8340E9C for ; Wed, 6 Apr 2016 22:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6067B81 for ; Wed, 6 Apr 2016 22:09:42 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1459980565.1baf50e0e76740f88f997e71e8bdfe2fb35be830.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/less/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/less/files/lesspipe.sh X-VCS-Directories: sys-apps/less/files/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 1baf50e0e76740f88f997e71e8bdfe2fb35be830 X-VCS-Branch: master Date: Wed, 6 Apr 2016 22:09:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3c25f3f6-bde6-4b82-aac5-d7baae8ced94 X-Archives-Hash: b539e84376faacaf18f3c4f7994b3196 commit: 1baf50e0e76740f88f997e71e8bdfe2fb35be830 Author: Mike Frysinger gentoo org> AuthorDate: Wed Apr 6 21:10:38 2016 +0000 Commit: Mike Frysinger gentoo 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 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"