summaryrefslogtreecommitdiff
path: root/contrib/autorpm
diff options
context:
space:
mode:
authorDavid Paleino <d.paleino@gmail.com>2009-10-10 17:15:58 +0200
committerDavid Paleino <d.paleino@gmail.com>2009-10-10 17:15:58 +0200
commite5a9b6220e93ca656fd9774c6aefa78241edca6f (patch)
tree4a65aa19b18fe2e8dcec24a1c97ce9746a6f91ff /contrib/autorpm
parent96d00c3d7f1912d4f3f76f8ea21ef68d179b8b30 (diff)
downloadbash-completion-c791e37c7b86e2dcefc0b8debb501054d1081668.tar.gz
Imported Upstream version 1.1upstream/1.1
Diffstat (limited to 'contrib/autorpm')
-rw-r--r--contrib/autorpm23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/autorpm b/contrib/autorpm
new file mode 100644
index 00000000..e111af02
--- /dev/null
+++ b/contrib/autorpm
@@ -0,0 +1,23 @@
+# autorpm(8) completion
+
+have autorpm &&
+_autorpm()
+{
+ local cur
+
+ COMPREPLY=()
+ cur=`_get_cword`
+
+ COMPREPLY=( $( compgen -W '--notty --debug --help --version auto add \
+ fullinfo info help install list remove set' -- "$cur" ) )
+
+} &&
+complete -F _autorpm autorpm
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh