[pacman-dev] [PATCH 1/2] bash_completion: update makepkg completion

Allan McRae allan at archlinux.org
Tue Jan 26 10:44:20 UTC 2016


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 contrib/bash_completion.in | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in
index 224b8f9..c74106f 100644
--- a/contrib/bash_completion.in
+++ b/contrib/bash_completion.in
@@ -74,12 +74,13 @@ _makepkg() {
   local cur opts prev
   COMPREPLY=()
   _get_comp_words_by_ref cur prev
-  if [[ $cur = -* && ! $prev =~ ^-(-(config|help)$|\w*[Chp]) ]]; then
-    opts=('allsource asdeps check clean config force geninteg help holdver ignorearch install
-           key log needed noarchive nobuild nocheck nocolor noconfirm nodeps noextract noprepare
-           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')
+  if [[ $cur = -* && ! $prev =~ ^-(-(config|help|key|version)$|\w*[Vhp]) ]]; then
+    opts=('allsource asdeps check clean cleanbuild config force geninteg help
+           holdver ignorearch install key log needed noarchive nobuild nocheck
+           nocolor noconfirm nodeps noextract noprepare noprogressbar nosign
+           packagelist printsrcinfo repackage rmdeps sign skipchecksums
+           skipinteg skippgpcheck source syncdeps verifysource version'
+          'A C L R S c d e f g h i m o p r s')
     _arch_ptr2comp opts
   fi
   true
-- 
2.7.0


More information about the pacman-dev mailing list