- zipinfo now completes on the same files as unzip

This commit is contained in:
ianmacd 2002-04-23 14:01:39 +00:00
parent 38d9a7f511
commit b8bc576485

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a # bash_completion - some programmable completion functions for bash 2.05a
# #
# $Id: bash_completion,v 1.281 2002/04/23 02:51:54 ianmacd Exp $ # $Id: bash_completion,v 1.282 2002/04/23 16:01:39 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -53,7 +53,7 @@ complete -d pushd
# #
# START exclude -- do NOT remove this line # START exclude -- do NOT remove this line
complete -f -X '!*.bz2' bunzip2 bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep 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 zipinfo
complete -f -X '*.Z' compress znew complete -f -X '*.Z' compress znew
complete -f -X '!*.@(Z|gz|tgz|Gz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep zless zmore complete -f -X '!*.@(Z|gz|tgz|Gz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep zless zmore
complete -f -X '!*.Z' uncompress complete -f -X '!*.Z' uncompress