Add *.t[bl]z support for pkgtools

pkgtools also supports tbz (bzip2) and tlz (lzma) compression
formats since april 2009.
master
Michele Ballabio 2010-03-07 15:51:13 +01:00 committed by Ville Skyttä
parent 314cc0f13a
commit fca102412e
2 changed files with 5 additions and 1 deletions

View File

@ -276,6 +276,10 @@ bash-completion (1.1)
* Fix leaking $muttcmd from mutt completion
* Fix completing multiple hosts (Debian: #535585)
[ Michele Ballabio ]
* Add more extensions to pkgtools completion.
-- David Paleino <d.paleino@gmail.com> Sat, 03 Oct 2009 15:41:49 +0200
bash-completion (1.0)

View File

@ -11,7 +11,7 @@ _removepkg()
COMPREPLY=( $( (cd /var/log/packages; compgen -f -- "$cur") ) )
} &&
complete -F _removepkg -o filenames removepkg &&
complete -o dirnames -f -X '!*.t[gx]z' installpkg upgradepkg explodepkg
complete -o dirnames -f -X '!*.t[bglx]z' installpkg upgradepkg explodepkg
# Local variables:
# mode: shell-script