mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
contrib: Update bash_completion
Check all options are included in bash-completion. Alphabetize the pacman_key options for easier maintenance. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6e2c15099a
commit
bf3618a7c1
@ -44,14 +44,15 @@ _pacman_key() {
|
|||||||
local o cur opts prev wantfiles
|
local o cur opts prev wantfiles
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
_get_comp_words_by_ref cur prev
|
_get_comp_words_by_ref cur prev
|
||||||
opts=('add delete export finger help list-keys recv-keys updatedb verify
|
opts=('add config delete edit-key export finger gpgdir
|
||||||
version config edit-key gpgdir import import-trustdb init keyserver
|
help import import-trustdb init keyserver list-keys list-sigs
|
||||||
list-sigs lsign-key populate refresh-keys nocolor'
|
lsign-key nocolor populate recv-keys refresh-keys updatedb
|
||||||
|
verify version'
|
||||||
'a d e f h l r u v V')
|
'a d e f h l r u v V')
|
||||||
|
|
||||||
# operations for which we want to complete keyids
|
# operations for which we want to complete keyids
|
||||||
for o in 'd delete' 'e export' 'f finger' 'l list-keys' 'r recv-keys' \
|
for o in 'd delete' 'e export' 'f finger' 'l list-keys' 'r recv-keys' \
|
||||||
'edit-key' 'list-sigs' 'refresh-keys'; do
|
'edit-key' 'list-sigs' 'lsign-key' 'refresh-keys'; do
|
||||||
_arch_incomp "$o" && break
|
_arch_incomp "$o" && break
|
||||||
unset o
|
unset o
|
||||||
done
|
done
|
||||||
@ -75,8 +76,9 @@ _makepkg() {
|
|||||||
_get_comp_words_by_ref cur prev
|
_get_comp_words_by_ref cur prev
|
||||||
if [[ $cur = -* && ! $prev =~ ^-(-(config|help)$|\w*[Chp]) ]]; then
|
if [[ $cur = -* && ! $prev =~ ^-(-(config|help)$|\w*[Chp]) ]]; then
|
||||||
opts=('allsource asdeps asroot check clean config force geninteg help holdver ignorearch
|
opts=('allsource asdeps asroot check clean config force geninteg help holdver ignorearch
|
||||||
install log nobuild nocheck nocolor noconfirm nodeps noextract
|
install key log needed nobuild nocheck nocolor noconfirm nodeps noextract
|
||||||
noprogressbar nosign pkg repackage rmdeps sign skipinteg source syncdeps'
|
noprogressbar nosign pkg repackage rmdeps sign skipchecksums skipinteg
|
||||||
|
skippgpcheck source syncdeps verifysource version'
|
||||||
'A L R S c d e f g h i m o p r s')
|
'A L R S c d e f g h i m o p r s')
|
||||||
_arch_ptr2comp opts
|
_arch_ptr2comp opts
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user