make ee and xv complete on more file-types
This commit is contained in:
parent
1853c7441a
commit
0cc14422d4
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# <![CDATA[
|
# <![CDATA[
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.33 2001/12/11 21:25:53 ianmacd Exp $
|
# $Id: bash_completion,v 1.34 2001/12/13 21:34:17 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -43,7 +43,7 @@ complete -f -X '*.gz' gzip
|
|||||||
complete -f -X '*.Z' compress
|
complete -f -X '*.Z' compress
|
||||||
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore
|
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore
|
||||||
complete -f -X '!*.Z' uncompress zmore zcat
|
complete -f -X '!*.Z' uncompress zmore zcat
|
||||||
complete -f -X '!*.+(gif|jpg|jpeg|GIF|JPG|bmp)' ee xv
|
complete -f -X '!*.+(gif|jpg|jpeg|tif|tiff|png|GIF|JPG|TIF|TIFF|PNG|bmp)' ee xv
|
||||||
complete -f -X '!*.+(ps|PS|ps.gz)' gv
|
complete -f -X '!*.+(ps|PS|ps.gz)' gv
|
||||||
complete -f -X '!*.+(dvi|DVI)' dvips xdvi dviselect dvitype
|
complete -f -X '!*.+(dvi|DVI)' dvips xdvi dviselect dvitype
|
||||||
complete -f -X '!*.+(pdf|PDF)' acroread xpdf
|
complete -f -X '!*.+(pdf|PDF)' acroread xpdf
|
||||||
@ -1125,11 +1125,7 @@ _make()
|
|||||||
|
|
||||||
# if we have a partial word to complete, restrict completions to
|
# if we have a partial word to complete, restrict completions to
|
||||||
# matches of that word
|
# matches of that word
|
||||||
if [ -n "$2" ]; then
|
[ -n "$2" ] && gcmd='grep "^$2"' || gcmd=cat
|
||||||
gcmd='grep "^$2"'
|
|
||||||
else
|
|
||||||
gcmd=cat
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if we don't want to use *.mk, we can take out the cat and use
|
# if we don't want to use *.mk, we can take out the cat and use
|
||||||
# test -f $makef and input redirection
|
# test -f $makef and input redirection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user