added a bunch of one-liners from patch by Matthias Klose <doko@cs.tu-berlin.de>

This commit is contained in:
ianmacd 2002-02-06 04:02:46 +00:00
parent 8592dda38b
commit 100ef4f101

View File

@ -2,7 +2,7 @@
#
# <![CDATA[
#
# $Id: bash_completion,v 1.88 2002/02/06 02:51:20 ianmacd Exp $
# $Id: bash_completion,v 1.89 2002/02/06 05:02:46 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -44,19 +44,22 @@ complete -d mkdir rmdir pushd
# the following section lists completions that are redefined later
# START exclude -- do NOT remove this line
complete -f -X '!*.bz2' bunzip2
complete -f -X '!*.bz2' bunzip2 bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
complete -f -X '!*.+(zip|ZIP|jar|JAR|exe|EXE|pk3)' unzip
complete -f -X '*.Z' compress
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore
complete -f -X '*.Z' compress znew
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep \
zless zmore
complete -f -X '!*.Z' uncompress
complete -f -X '!*.+(gif|jpg|jpeg|tif|tiff|png|GIF|JPG|TIF|TIFF|PNG|bmp)' ee xv
complete -f -X '!*.+(?(e)ps|?(E)PS|?(e)ps.gz|pdf|PDF)' gv ggv
complete -f -X '!*.+(dvi|DVI)' dvips xdvi dviselect dvitype
complete -f -X '!*.+(pdf|PDF)' acroread xpdf
complete -f -X '!*.texi*' makeinfo texi2dvi texi2html
complete -f -X '!*.+(tex|TEX)' tex latex slitex jadetex pdfjadetex
complete -f -X '!*.+(tex|TEX)' tex latex slitex jadetex pdfjadetex pdftex \
pdflatex
complete -f -X '!*.+(mp3|MP3)' mpg123
complete -f -X '!*.+(mpg|mpeg|avi|asf|vob|bin|vcd|ps|pes|fli|viv|rm|ram|yuv)' mplayer
complete -f -X '!*.+(mpg|mpeg|avi|asf|vob|bin|vcd|ps|pes|fli|viv|rm|ram|yuv)' \
mplayer
complete -f -X '!*.+(avi|asf)' aviplay
complete -f -X '!*.+(rm|ram)' realplay
complete -f -X '!*.+(mpg|mpeg|avi|mov)' xanim