Skip to content

Commit

Permalink
Add shell completion for --rebuild* flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Mar 27, 2018
1 parent 7e20d2d commit 5900305
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion completions/bash
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions completions/fish
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions completions/zsh
Original file line number Diff line number Diff line change
@@ -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]'

0 comments on commit 5900305

Please sign in to comment.