about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-06-08 12:12:34 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-06-08 12:12:34 +0000
commit4ea3b102160e7b84757d559eb67e7fdf261f056f (patch)
tree3abb471cd8de6166d48c648c723ae4d496666876
parentf478a8b75eaa1a83edb7960b383892043e918f61 (diff)
downloadzsh-4ea3b102160e7b84757d559eb67e7fdf261f056f.tar.gz
zsh-4ea3b102160e7b84757d559eb67e7fdf261f056f.tar.xz
zsh-4ea3b102160e7b84757d559eb67e7fdf261f056f.zip
new yast completion
-rw-r--r--ChangeLog2
-rw-r--r--Completion/Linux/Command/.distfiles2
-rw-r--r--Completion/Linux/Command/_yast11
3 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8072ec978..597aa957f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-06-08  Oliver Kiddle  <opk@zsh.org>
 
+	* unposted: Completion/Linux/Command/_yast: new yast completion
+
 	* 21313: Completion/Unix/Type/_email_addresses: make code for
 	extracting mutt aliases do a better job of finding rc files
 
diff --git a/Completion/Linux/Command/.distfiles b/Completion/Linux/Command/.distfiles
index a5445a0a7..abeebc157 100644
--- a/Completion/Linux/Command/.distfiles
+++ b/Completion/Linux/Command/.distfiles
@@ -1,4 +1,4 @@
 DISTFILES_SRC='
 .distfiles
-_iptables _losetup _modutils _mondo _pkgtool _uml _valgrind
+_iptables _losetup _modutils _mondo _pkgtool _uml _valgrind _yast
 '
diff --git a/Completion/Linux/Command/_yast b/Completion/Linux/Command/_yast
new file mode 100644
index 000000000..f008b404f
--- /dev/null
+++ b/Completion/Linux/Command/_yast
@@ -0,0 +1,11 @@
+#compdef yast yast2
+
+_arguments \
+  '(- 1)'{-h,--help}'[display help information]' \
+  '(- 1)'{-l,--list}'[list all available modules]' \
+  '(-g --geometry)'{-g,--geometry}'[specify default window size]:_x_geometry' \
+  '(-s --style)'{-s,--style}'[specify widget style]:style:(qt)' \
+  '--noborder[no window manager border for main window]' \
+  '--fullscreen[use full screen]' \
+  '(-)'{-i,--install}'[install package]:*:package file:_files -g "*.rpm(-.)"' \
+  '1:module:( ${${(f)"$($words[1] -l 2>/dev/null)"}[2,-1]##* } )'