aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpmbuildupdate.bash-completion27
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