diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2009-02-21 20:31:40 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2009-02-21 20:31:40 +0000 |
commit | 51db97a0c9f6ede90115b912a4caf204195ccdb2 (patch) | |
tree | 2a69c94fed78bd122a02a41094ad1e29849c9589 | |
parent | Complete ebuild filenames even when no arch is given to ekeyword. (diff) | |
download | gentoo-bashcomp-51db97a0c9f6ede90115b912a4caf204195ccdb2.tar.gz gentoo-bashcomp-51db97a0c9f6ede90115b912a4caf204195ccdb2.tar.bz2 gentoo-bashcomp-51db97a0c9f6ede90115b912a4caf204195ccdb2.zip |
Initial work for the repoman bash-completion module
svn path=/trunk/; revision=71
-rw-r--r-- | repoman | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +# repoman completion by Jeremy Olexa <darkside@gentoo.org> + +_repoman() +{ + local cur + + COMPREPLY=() + cur=`_get_cword` + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W '-h --help -m -M -p --pretend -q --quiet -f \ + --force -v --verbose -V --version -x --xmlparse -i --ignore-arches -I \ + --ignore-masked -d --include-dev --without-mask --mode=' -- $cur ) ) + ;; + *) + if [ $COMP_CWORD -eq 1 ]; then + COMPREPLY=( $( compgen -W 'ci commit fix full help manifest scan' \ + -- $cur ) ) + fi + ;; + esac + + return 0 + +} +complete -F _repoman -o filenames repoman |