_rpm() now performs tilde expansion when file globbing

removed commented out gzip and bzip2 one-liners
This commit is contained in:
ianmacd 2002-01-23 23:41:00 +00:00
parent 1ad5366035
commit 00c593b279

View File

@ -2,7 +2,7 @@
#
# <![CDATA[
#
# $Id: bash_completion,v 1.68 2002/01/24 00:36:30 ianmacd Exp $
# $Id: bash_completion,v 1.69 2002/01/24 00:41:00 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -39,10 +39,8 @@ complete -d mkdir rmdir pushd
# the following section lists completions that are redefined later
# START exclude -- do NOT remove this line
#complete -f -X '*.bz2' bzip2
complete -f -X '!*.bz2' bunzip2
complete -f -X '!*.+(zip|ZIP|jar|JAR)' unzip
#complete -f -X '*.gz' gzip
complete -f -X '*.Z' compress
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore
complete -f -X '!*.Z' uncompress
@ -618,6 +616,8 @@ _rpm()
{
local suffix
_expand || return 0
# get extension of current word, if relevant
suffix=${cur##*.}
# nullify it if it's not a substring of the extension we're