Updated msys2

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

View file

@ -103,7 +103,7 @@ _pacman_opts_files=(
{-l,--list}'[List the files owned by the queried package]:package:_pacman_completions_all_packages'
{-o,--owns}'[Query the package that owns]:files:_files'
{-s,--search}'[Search package file names for matching strings]:files:_files'
{-x,--regex}'[Enable searching using regluar expressions]:regex:'
{-x,--regex}'[Enable searching using regular expressions]:regex:'
{-y,--refresh}'[Download fresh files databases from the server]'
'--machinereadable[Produce machine-readable output]'
{-q,--quiet}'[Show less information for query and search]'
@ -316,7 +316,7 @@ _pacman_completions_all_packages() {
typeset -U packages
${seq} _wanted packages expl "packages" compadd ${sep[@]} - "${(@)packages}"
repositories=(${(o)${${${(M)${(f)"$(</etc/pacman.conf)"}:#\[*}/\[/}/\]/}:#options})
repositories=($(pacman-conf --repo-list))
typeset -U repositories
_wanted repo_packages expl "repository/package" compadd -S "/" $repositories
fi
@ -348,7 +348,7 @@ _pacman_all_packages() {
# provides completions for repository names
_pacman_completions_repositories() {
local -a cmd repositories
repositories=(${(o)${${${(M)${(f)"$(</etc/pacman.conf)"}:#\[*}/\[/}/\]/}:#options})
repositories=($(pacman-conf --repo-list))
# Uniq the array
typeset -U repositories
compadd "$@" -a repositories
@ -505,7 +505,7 @@ _key_shortopts=(
'-a[Add the specified keys (empty for stdin)]: :_files'
'-d[Remove the Specified keyids]:*: :_keys'
'-e[Export the specified or all keyids]:*: :_keys'
'-f[List fingreprint for specidied or all keyids]:*: :_keys'
'-f[List fingerprint for specified or all keyids]:*: :_keys'
'-l[List the specified or all keys]:*: :_keys'
'-r[Fetch the specified keyids]:*: :_keys'
'-u[Update the trustdb of pacman]'
@ -518,7 +518,7 @@ _key_longopts=(
'--add[Add the specified keys (empty for stdin)]: :_files'
'--delete[Remove the Specified keyids]:*: :_keys'
'--export[Export the specified or all keyids]:*: :_keys'
'--finger[List fingreprint for specidied or all keyids]:*: :_keys'
'--finger[List fingerprint for specified or all keyids]:*: :_keys'
'--list-keys[List the specified or all keys]:*: :_keys'
'--recv-keys[Fetch the specified keyids]:*: :_keys'
'--updatedb[Update the trustdb of pacman]'

View file

@ -10,7 +10,7 @@ _repos(){
_compression(){
local -a cmd _comps
_comps=('none' 'gzip' 'bzip2' 'lzma' 'lzop' 'xz')
_comps=('none' 'gzip' 'bzip2' 'lzma' 'lzop' 'lz4' 'xz')
typeset -U _comps
compadd "$@" -a _comps
}
@ -38,6 +38,8 @@ _longopts=(
'--raw[disable output justification]'
'--null[null terminate output]'
'--compress=[compress downloaded repos]: :_compression'
'--config=[use an alternate pacman config]: :_files'
'--cachedir=[use an alternate cache directory]: :_files -/'
)
_shortopts=(
@ -57,6 +59,8 @@ _shortopts=(
'*-w[disable output justification]'
'*-0[null terminate output]'
'*-z[compress downloaded repos]: :_compression'
'*-C[use an alternate pacman config]: :_files'
'*-D[use an alternate cache directory]: :_files -/'
)
_pkgfile() {