summary refs log tree commit diff
path: root/Completion/openSUSE/Command/_SUSEconfig
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-08-06 15:03:44 +0100
committerPeter Stephenson <pws@zsh.org>2014-08-06 15:03:44 +0100
commitc810a072e220914444b38b87aaee5ae40edb6466 (patch)
tree5106a04afdf3bb26982774baea5705d2d07a656f /Completion/openSUSE/Command/_SUSEconfig
parent22ee3a4fd9698b221d10ecda501d7579132e95fc (diff)
downloadzsh-c810a072e220914444b38b87aaee5ae40edb6466.tar.gz
zsh-c810a072e220914444b38b87aaee5ae40edb6466.tar.xz
zsh-c810a072e220914444b38b87aaee5ae40edb6466.zip
Rename _SuSEconfig to _SUSEconfig
Diffstat (limited to 'Completion/openSUSE/Command/_SUSEconfig')
-rw-r--r--Completion/openSUSE/Command/_SUSEconfig28
1 files changed, 28 insertions, 0 deletions
diff --git a/Completion/openSUSE/Command/_SUSEconfig b/Completion/openSUSE/Command/_SUSEconfig
new file mode 100644
index 000000000..d50828529
--- /dev/null
+++ b/Completion/openSUSE/Command/_SUSEconfig
@@ -0,0 +1,28 @@
+#compdef SuSEconfig
+
+local curcontext="$curcontext" state line
+typeset -A opt_args
+
+if [[ -z "$_SuSEconfig_modules" ]]; then 
+	for i in /sbin/conf.d/SuSEconfig.*; do
+		case $i in *.rpm*|*.swap|*.bak|*.orig|*~|\#*) continue;; esac
+		_SuSEconfig_modules=($_SuSEconfig_modules ${i##*/SuSEconfig.})
+	done
+fi
+
+
+_arguments \
+  '--help' \
+  '--quick' \
+  '--force' \
+  '--verbose' \
+  '--nonewpackage' \
+  '--module:module:->module' && return 0
+
+case $state in
+	module) compadd $_SuSEconfig_modules ;;
+esac
+
+# Usage: SuSEconfig [--quick|--nonewpackage|--force|--verbose] [--module name]
+
+