diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2004-10-25 20:44:50 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2004-10-25 20:44:50 +0000 |
commit | 0f76c119bfbd493d4cd94a2cca9067076af26a51 (patch) | |
tree | 0815979f3c2c0a67a38d8bf991398d5dd51576a6 | |
parent | a5edb94d82bc280027b202b2cbc23f05911f3880 (diff) | |
download | bootsplash-0f76c119bfbd493d4cd94a2cca9067076af26a51.tar bootsplash-0f76c119bfbd493d4cd94a2cca9067076af26a51.tar.gz bootsplash-0f76c119bfbd493d4cd94a2cca9067076af26a51.tar.bz2 bootsplash-0f76c119bfbd493d4cd94a2cca9067076af26a51.tar.xz bootsplash-0f76c119bfbd493d4cd94a2cca9067076af26a51.zip |
first import
-rw-r--r-- | rpmbuildupdate.bash-completion | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rpmbuildupdate.bash-completion b/rpmbuildupdate.bash-completion new file mode 100644 index 0000000..a5b8320 --- /dev/null +++ b/rpmbuildupdate.bash-completion @@ -0,0 +1,27 @@ +# bash completion for rpmctl +# $Id$ + +_rpmbuildupdate() +{ + local cur prev + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case $prev in + --@(rpmmon|src)) + _filedir + return 0 + ;; + --@(srpms|top)) + _filedir -d + return 0 + ;; + esac + + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '--rpmmon --srpms --src --release --deps --log --nosource ---top --nobuild -c' -- $cur ) ) + fi +} +complete -F _rpmbuildupdate $filenames rpmbuildupdate |