From 8c43004135249e27ca5f36a7ced455e4750e48ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 18 Aug 2009 11:15:01 +0300 Subject: [PATCH] Add lz*grep, lzless, and lzmore completion. --- CHANGES | 2 +- bash_completion | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 76a16444..b96b7896 100644 --- a/CHANGES +++ b/CHANGES @@ -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). diff --git a/bash_completion b/bash_completion index cfccabbe..9d7c88a1 100644 --- a/bash_completion +++ b/bash_completion @@ -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