Add lz*grep, lzless, and lzmore completion.

This commit is contained in:
Ville Skyttä 2009-08-18 11:15:01 +03:00
parent 7e92537bad
commit 8c43004135
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,7 @@ bash-completion (1.x)
* Add xmlwf completion.
* Associate *.po with poedit, gtranslator, kbabel, and lokalize.
* Add xz, xzcat, xzdec, and unxz completion.
* Add lzcat and unlzma completion.
* Add lzcat, lz*grep, lzless, lzmore, and unlzma completion.
* Load "modules" completion if /etc/profile.d/modules.sh exists even if
the "module" alias has not been defined (yet).
* Add *.ogv to xine-based players (Debian: #540033).

View File

@ -109,7 +109,8 @@ complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip
#complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' zcmp zdiff zcat zegrep zfgrep zgrep zless zmore
complete -f -X '!*.*' zcmp zdiff zcat zegrep zfgrep zgrep zless zmore
complete -f -X '!*.Z' uncompress
complete -f -X '!*.lzma' lzcat unlzma
# lzcmp, lzdiff intentionally not here, see Debian: #455510
complete -f -X '!*.lzma' lzcat lzegrep lzfgrep lzgrep lzless lzmore unlzma
complete -f -X '!*.@(xz|lzma)' unxz xzcat
complete -f -X '!*.@(gif|jp?(e)g|miff|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|pcx|GIF|JP?(E)G|MIFF|TIF?(F)|PN[GM]|P[BGP]M|BMP|XPM|ICO|XWD|TGA|PCX)' ee
complete -f -X '!*.@(gif|jp?(e)g|tif?(f)|png|p[bgp]m|bmp|x[bp]m|rle|rgb|pcx|fits|pm|GIF|JPG|JP?(E)G|TIF?(F)|PNG|P[BGP]M|BMP|X[BP]M|RLE|RGB|PCX|FITS|PM)' xv qiv