28 lines
579 B
Bash
28 lines
579 B
Bash
#compdef miaur
|
|
|
|
_miaur() {
|
|
local -a ops
|
|
ops=(
|
|
'-Syu:upgrade repository and AUR packages'
|
|
'-Sua:upgrade AUR packages only'
|
|
'-Ss:search packages'
|
|
'-Si:show package information'
|
|
'-S:install a package'
|
|
'-Qua:list AUR upgrades'
|
|
'-G:download a PKGBUILD'
|
|
'-Gp:print a PKGBUILD'
|
|
'-Bi:build and install'
|
|
'-Sc:clean caches'
|
|
'-Rns:remove a package'
|
|
'--aur:use the AUR only'
|
|
'--repo:use repositories only'
|
|
'--skipreview:skip PKGBUILD review'
|
|
'--bottomup:show AUR results first'
|
|
'--help:show help'
|
|
)
|
|
_arguments '*:package:_files' \
|
|
"${ops[@]}"
|
|
}
|
|
|
|
_miaur
|