Browse Source

updated vbuilder-bash-completion.sh: supported --category option

git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@794 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 14 years ago
parent
commit
0958053991
1 changed files with 6 additions and 1 deletions
  1. 6 1
      vbuilder-bash-completion.sh

+ 6 - 1
vbuilder-bash-completion.sh

@@ -22,7 +22,7 @@ _vbuilder()
     first="${COMP_WORDS[1]}"
 
     ## The basic options we'll complete.
-    options="--version --arch --dist-upgrade --unionfs --target --with-compat32"
+    options="--version --arch --category --dist-upgrade --unionfs --target --with-compat32"
     actions="clean build build-rpm install-rpm remove-rpm show-info"
     opts="$options $actions"
 
@@ -46,6 +46,11 @@ _vbuilder()
 	    COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
 	    ;;
 
+	--category)
+	    local running="main main,proposed-updates main,plus main,plus,nonfree"
+	    COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )
+	    ;;
+
 	--target)
 	    local running="$(cat /usr/lib/rpm/rpmrc | grep arch_canon: | sed -e "s/arch_canon:[[:blank:]]*\(.*\):.*/\1/")"
 	    COMPREPLY=( $(compgen -W "${running}" -- "${cur}") )