From 590030525b8d8382f431876118a99668979fda8f Mon Sep 17 00:00:00 2001 From: morganamilo Date: Tue, 27 Mar 2018 17:27:29 +0100 Subject: [PATCH] Add shell completion for --rebuild* flags --- completions/bash | 2 +- completions/fish | 4 ++++ completions/zsh | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/completions/bash b/completions/bash index 56e69ae7..6e9a4d89 100644 --- a/completions/bash +++ b/completions/bash @@ -70,7 +70,7 @@ _yay() { common=('arch cachedir color config confirm dbpath debug gpgdir help hookdir logfile noconfirm noprogressbar noscriptlet quiet save mflags buildir editor makepkg pacman tar git gpg gpgflags config requestsplitn sudoloop nosudoloop - redownload noredownload redownloadall root verbose' 'b d h q r v') + redownload noredownload redownloadall rebuild rebuildall rebuildtree norebuild root verbose' 'b d h q r v') core=('database files help query remove sync upgrade version' 'D F Q R S U V h') for o in 'D database' 'F files' 'Q query' 'R remove' 'S sync' 'U upgrade' 'Y yays' 'P print'; do diff --git a/completions/fish b/completions/fish index 1c350902..fda72c0a 100644 --- a/completions/fish +++ b/completions/fish @@ -84,6 +84,10 @@ complete -c $progname -n "not $noopt" -l nosudoloop -d 'Do not loop sudo calls i complete -c $progname -n "not $noopt" -l redownload -d 'Redownload PKGBUILD of package even if up-to-date' -f complete -c $progname -n "not $noopt" -l noredownload -d 'Do not redownload up-to-date PKGBUILDs' -f complete -c $progname -n "not $noopt" -l redownloadall -d 'Redownload PKGBUILD of package and deps even if up-to-date' -f +complete -c $progname -n "not $noopt" -l rebuild -d 'Always build target packages' -f +complete -c $progname -n "not $noopt" -l rebuildall -d 'Always build all AUR packages' -f +complete -c $progname -n "not $noopt" -l rebuildtree -d 'Always build all AUR packages even if installed' -f +complete -c $progname -n "not $noopt" -l norebuild -d 'Skip package build if in cache and up to date' -f # Yay options complete -c $progname -n $yayspecific -s c -l clean -d 'Remove unneeded dependencies' -f diff --git a/completions/zsh b/completions/zsh index e2dd562b..51757e1b 100644 --- a/completions/zsh +++ b/completions/zsh @@ -60,6 +60,10 @@ _pacman_opts_common=( '--redownload[Always download pkgbuilds of targets]' '--redownloadall[Always download pkgbuilds of all AUR packages]' '--noredownload[Skip pkgbuild download if in cache and up to date]' + '--rebuild[Always build target packages]' + '--rebuildall[Always build all AUR packages]' + '--rebuildtree[Always build all AUR packages even if installed]' + '--norebuild[Skip package build if in cache and up to date]' '--mflags[Pass arguments to makepkg]:mflags' '--gpgflags[Pass arguments to gpg]:gpgflags' '--sudoloop[Loop sudo calls in the backgroud to avoid timeout]'