_rpm() now performs tilde expansion when file globbing
removed commented out gzip and bzip2 one-liners
This commit is contained in:
parent
1ad5366035
commit
00c593b279
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# <![CDATA[
|
# <![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>
|
# 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
|
# the following section lists completions that are redefined later
|
||||||
# START exclude -- do NOT remove this line
|
# START exclude -- do NOT remove this line
|
||||||
#complete -f -X '*.bz2' bzip2
|
|
||||||
complete -f -X '!*.bz2' bunzip2
|
complete -f -X '!*.bz2' bunzip2
|
||||||
complete -f -X '!*.+(zip|ZIP|jar|JAR)' unzip
|
complete -f -X '!*.+(zip|ZIP|jar|JAR)' unzip
|
||||||
#complete -f -X '*.gz' gzip
|
|
||||||
complete -f -X '*.Z' compress
|
complete -f -X '*.Z' compress
|
||||||
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore
|
complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore
|
||||||
complete -f -X '!*.Z' uncompress
|
complete -f -X '!*.Z' uncompress
|
||||||
@ -618,6 +616,8 @@ _rpm()
|
|||||||
{
|
{
|
||||||
local suffix
|
local suffix
|
||||||
|
|
||||||
|
_expand || return 0
|
||||||
|
|
||||||
# get extension of current word, if relevant
|
# get extension of current word, if relevant
|
||||||
suffix=${cur##*.}
|
suffix=${cur##*.}
|
||||||
# nullify it if it's not a substring of the extension we're
|
# nullify it if it's not a substring of the extension we're
|
||||||
|
Loading…
x
Reference in New Issue
Block a user