diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-10-07 03:20:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-10-07 03:20:39 +0000 |
commit | 3bf9a175443f1a32e4b096ff27679500fc88572a (patch) | |
tree | 50f72872889d4d8bbb325fd80881dbfdb323b033 /sys-apps/less | |
parent | Update l7-filter support #150124. (diff) | |
download | gentoo-2-3bf9a175443f1a32e4b096ff27679500fc88572a.tar.gz gentoo-2-3bf9a175443f1a32e4b096ff27679500fc88572a.tar.bz2 gentoo-2-3bf9a175443f1a32e4b096ff27679500fc88572a.zip |
flag .conf/.log/.txt as known "text" files #150256
(Portage version: 2.1.2_pre2-r5)
Diffstat (limited to 'sys-apps/less')
-rw-r--r-- | sys-apps/less/files/lesspipe.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh index 34bb5b06155b..737407672b69 100644 --- a/sys-apps/less/files/lesspipe.sh +++ b/sys-apps/less/files/lesspipe.sh @@ -67,6 +67,7 @@ lesspipe() { ;; esac ;; + *.conf|*.log|*.txt) cat -- "$1" ;; *.dvi) dvi2tty "$1" ;; *.ps|*.pdf) ps2ascii "$1" || pstotext "$1" || pdftotext "$1" ;; *.doc) antiword "$1" || catdoc "$1" ;; @@ -186,7 +187,7 @@ if [[ -z $1 ]] ; then echo "Usage: lesspipe.sh <file>" elif [[ $1 == "-V" ]] ; then Id="cvsid" - cvsid="$Id: lesspipe.sh,v 1.16 2006/07/30 17:36:01 vapier Exp $" + cvsid="$Id: lesspipe.sh,v 1.17 2006/10/07 03:20:39 vapier Exp $" cat <<-EOF $cvsid Copyright 2001-2005 Gentoo Foundation |