Add xz and compress support to rpmbuild -t*/--tarbuild completion.

master
Ville Skyttä 2009-08-26 23:58:50 +03:00
parent 2bef79059c
commit 8770727a08
2 changed files with 4 additions and 3 deletions

View File

@ -103,7 +103,8 @@ bash-completion (1.x)
* Complete bzcat and zcat only on compressed files.
* Do not require a dot in bzcmp, bzdiff, bz*grep, zcmp, zdiff, z*grep, zless,
and zmore filename completions.
* Add more tarball filename extensions to rpmbuild -t*/--tarbuild completion.
* Add xz and compress support and more tarball filename extensions to
rpmbuild -t*/--tarbuild completion.
[ Todd Zullinger ]
* Make yum complete on filenames after install, deplist, update and upgrade

View File

@ -255,7 +255,7 @@ _rpm()
elif [[ ${COMP_WORDS[1]} == -b* ]]; then
_filedir 'spec'
else
_filedir '@(t?(ar.)@(gz|bz?(2))|tar.lzma)'
_filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
fi
;;
--re@(build|compile))
@ -267,7 +267,7 @@ _rpm()
fi
;;
--tarbuild)
_filedir '@(t?(ar.)@(gz|bz?(2))|tar.lzma)'
_filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
;;
--@(re|add)sign)
_filedir 'rpm'