Updated msys2

This commit is contained in:
gator96100 2019-08-16 02:06:21 +02:00
commit f0dc1ea8b0
13308 changed files with 689276 additions and 46605 deletions

View file

@ -17,13 +17,13 @@ __hasprefix() {
_pkgfile() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD - 1]} prevprev=${COMP_WORDS[COMP_CWORD - 2]}
local shortopts=(-l -s -u -b -C -g -i -q -R -r -h -V -v -w -z -0)
local shortopts=(-l -s -u -b -C -D -g -i -q -R -r -h -V -v -w -z -0)
local longopts=(--list --search --update --binaries --glob --ignorecase
--quiet --regex --help --version --verbose --raw --null)
local longoptsarg=(--compress --config --repo)
local longoptsarg=(--compress --config --cachedir --repo)
local allopts=("${shortopts[@]}" "${longopts[@]}" "${longoptsarg[@]}")
local compressopts=(none gzip bzip2 lzma lzop xz)
local compressopts=(none gzip bzip2 lz4 lzma lzop xz)
# maybe mangle the arguments in case we're looking at a --longopt=$val
[[ $cur = '=' ]] && cur=
@ -37,6 +37,11 @@ _pkgfile() {
compopt -o filenames
return 0
;;
-D|--cachedir)
COMPREPLY=($(compgen -d -- "$cur"))
compopt -o filenames
return 0
;;
-z|--compress)
COMPREPLY=($(compgen -W '${compressopts[*]}' -- "$cur"))
return 0