Files
Cursor AgentandFrank Vitrano a4f4767c47 Add self-update command to refresh miaur from Git
Introduce `miaur self-update` / `--self-update` that clones RepoUrl@Branch,
detects user vs system install prefix, and reinstalls in place. Configurable
via conf/env; supports --noconfirm, --repo-url, and --branch.

Co-authored-by: Frank Vitrano <WHC2006@users.noreply.github.com>
2026-07-23 14:44:24 +00:00

32 lines
743 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'
'self-update:update miaur from Git'
'--aur:use the AUR only'
'--repo:use repositories only'
'--skipreview:skip PKGBUILD review'
'--noremovemake:keep make dependencies'
'--noconfirm:bypass confirmation prompts'
'--self-update:update miaur from Git'
'--bottomup:show AUR results first'
'--help:show help'
)
_arguments '*:package:_files' \
"${ops[@]}"
}
_miaur