mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-14 02:27:03 -07:00
Updated msys2
This commit is contained in:
parent
6a85995508
commit
f0dc1ea8b0
13308 changed files with 689276 additions and 46605 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue