diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-12-31 20:52:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-12-31 20:52:17 +0000 |
commit | 2326cabf298d8f170c51b2d3277c782d49d11b52 (patch) | |
tree | 0ace55d3c2f96db3cc80160fc04fea9e9298b038 /sys-apps/less/files | |
parent | Stable for HPPA (bug #344827). (diff) | |
download | gentoo-2-2326cabf298d8f170c51b2d3277c782d49d11b52.tar.gz gentoo-2-2326cabf298d8f170c51b2d3277c782d49d11b52.tar.bz2 gentoo-2-2326cabf298d8f170c51b2d3277c782d49d11b52.zip |
lesspipe.sh -> lesspipe
Diffstat (limited to 'sys-apps/less/files')
-rw-r--r-- | sys-apps/less/files/lesspipe.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh index 8b40946a07b3..c14e50b58d52 100644 --- a/sys-apps/less/files/lesspipe.sh +++ b/sys-apps/less/files/lesspipe.sh @@ -1,7 +1,7 @@ #!/bin/bash # # Preprocessor for 'less'. Used when this environment variable is set: -# LESSOPEN="|lesspipe.sh %s" +# LESSOPEN="|lesspipe %s" # TODO: handle compressed files better @@ -231,11 +231,11 @@ lesspipe() { } if [[ -z $1 ]] ; then - echo "Usage: lesspipe.sh <file>" + echo "Usage: lesspipe <file>" elif [[ $1 == "-V" || $1 == "--version" ]] ; then Id="cvsid" cat <<-EOF - $Id: lesspipe.sh,v 1.42 2010/12/31 20:51:15 vapier Exp $ + $Id: lesspipe.sh,v 1.43 2010/12/31 20:52:17 vapier Exp $ Copyright 2001-2010 Gentoo Foundation Mike Frysinger <vapier@gentoo.org> (with plenty of ideas stolen from other projects/distros) @@ -245,11 +245,11 @@ elif [[ $1 == "-V" || $1 == "--version" ]] ; then less -V elif [[ $1 == "-h" || $1 == "--help" ]] ; then cat <<-EOF - lesspipe.sh: preproccess files before sending them to less + lesspipe: preproccess files before sending them to less - Usage: lesspipe.sh <file> + Usage: lesspipe <file> - lesspipe.sh specific settings: + lesspipe specific settings: LESSCOLOR env - toggle colorizing of output (no/yes/always) LESSCOLORIZER env - program used to colorize output (default: code2color) LESSIGNORE - list of extensions to ignore (don't do anything fancy) @@ -258,8 +258,8 @@ elif [[ $1 == "-h" || $1 == "--help" ]] ; then ~/.lessfilter One argument is passed to it: the file to display. - To use lesspipe.sh, simply add to your environment: - export LESSOPEN="|lesspipe.sh %s" + To use lesspipe, simply add to your environment: + export LESSOPEN="|lesspipe %s" Run 'less --help' or 'man less' for more info EOF |