[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 405e33deed75a3967c092cca37d7b94686403dfb

Ville Skyttä ville.skytta at iki.fi
Tue Aug 18 08:32:06 UTC 2009


The following commit has been merged in the master branch:
commit e074f7ff83dbcad3bd179f9c8dc1ab548e4b3017
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Aug 18 11:22:16 2009 +0300

    Complete bzcat and zcat only on compressed files.

diff --git a/CHANGES b/CHANGES
index b96b789..b2b2928 100644
--- a/CHANGES
+++ b/CHANGES
@@ -100,6 +100,7 @@ bash-completion (1.x)
     the "module" alias has not been defined (yet).
   * Add *.ogv to xine-based players (Debian: #540033).
   * Add $compopt (":" i.e. no-op with bash < 4, "compopt" with >= 4).
+  * Complete bzcat and zcat only on compressed files.
 
   [ Todd Zullinger ]
   * Make yum complete on filenames after install, deplist, update and upgrade
diff --git a/bash_completion b/bash_completion
index 9d7c88a..4b8b125 100644
--- a/bash_completion
+++ b/bash_completion
@@ -98,16 +98,16 @@ complete -d pushd
 # Do NOT break these over multiple lines.
 #
 # START exclude -- do NOT remove this line
-complete -f -X '!*.?(t)bz?(2)' bunzip2
+complete -f -X '!*.?(t)bz?(2)' bunzip2 bzcat
 # TODO: see #455510
-#complete -f -X '!*.?(t)bz?(2)' bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
-complete -f -X '!*.*' bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep
+#complete -f -X '!*.?(t)bz?(2)' bzcmp bzdiff bzegrep bzfgrep bzgrep
+complete -f -X '!*.*' bzcmp bzdiff bzegrep bzfgrep bzgrep
 complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi|sxw|ott|od[fgpst]|epub)' unzip zipinfo
 complete -f -X '*.Z' compress znew
-complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip
+complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip zcat
 # TODO: see #455510
-#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|gz|tgz|Gz|dz)' zcmp zdiff zegrep zfgrep zgrep zless zmore
+complete -f -X '!*.*' zcmp zdiff zegrep zfgrep zgrep zless zmore
 complete -f -X '!*.Z' uncompress
 # lzcmp, lzdiff intentionally not here, see Debian: #455510
 complete -f -X '!*.lzma' lzcat lzegrep lzfgrep lzgrep lzless lzmore unlzma

-- 
bash-completion



More information about the Bash-completion-commits mailing list