change instances of -X '!*.+(foo|bar)' to -X '!*.@(foo|bar) in the various
one-liners, so that e.g. baz would complete on .foo or .bar, but not .foobar
This commit is contained in:
parent
100ef4f101
commit
ebce6ca0d7
@ -2,7 +2,7 @@
|
||||
#
|
||||
# <![CDATA[
|
||||
#
|
||||
# $Id: bash_completion,v 1.89 2002/02/06 05:02:46 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.90 2002/02/06 16:54:09 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -45,26 +45,26 @@ 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 bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
|
||||
complete -f -X '!*.+(zip|ZIP|jar|JAR|exe|EXE|pk3)' unzip
|
||||
complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3)' unzip
|
||||
complete -f -X '*.Z' compress znew
|
||||
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep \
|
||||
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 '!*.@(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 pdftex \
|
||||
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)' \
|
||||
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 '!*.+(avi|asf)' aviplay
|
||||
complete -f -X '!*.+(rm|ram)' realplay
|
||||
complete -f -X '!*.+(mpg|mpeg|avi|mov)' xanim
|
||||
complete -f -X '!*.+(ogg|OGG)' ogg123
|
||||
complete -f -X '!*.+(mp3|MP3|ogg|OGG|pls)' xmms gqmpeg freeamp
|
||||
complete -f -X '!*.@(avi|asf)' aviplay
|
||||
complete -f -X '!*.@(rm|ram)' realplay
|
||||
complete -f -X '!*.@(mpg|mpeg|avi|mov)' xanim
|
||||
complete -f -X '!*.@(ogg|OGG)' ogg123
|
||||
complete -f -X '!*.@(mp3|MP3|ogg|OGG|pls)' xmms gqmpeg freeamp
|
||||
# FINISH exclude -- do not remove this line
|
||||
|
||||
# kill sees only signals
|
||||
|
Loading…
x
Reference in New Issue
Block a user