Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _unexpand



Here is a patch to add completion for the UNIX and Linux version of
unexpand. 

--- /dev/null	Sat Jul  9 18:12:21 2005
+++ Completion/Unix/Command/_unexpand	Sat Jul  9 18:12:36 2005
@@ -0,0 +1,15 @@
+#compdef unexpand
+#
+# $Id:$
+#
+# Copyright (C) 2005 Travis L. Spencer
+# ALL RIGHTS RESERVED
+#
+# See the file LICENCE in the root of the zsh distribution for
+# licensing information.
+#
+
+_arguments \
+    '-a[convert all whitespace, instead of just initial whitespace]' \
+    '-t[use the given tab width or a list of specific tab positions]:tablist' \
+    '*:file:_files'
--- /dev/null	Sat Jul  9 18:12:21 2005
+++ Completion/Linux/Command/_unexpand	Sat Jul  9 18:12:49 2005
@@ -0,0 +1,18 @@
+#compdef unexpand
+#
+# $Id:$
+#
+# Copyright (C) 2005 Travis L. Spencer
+# ALL RIGHTS RESERVED
+#
+# See the file LICENCE in the root of the zsh distribution for
+# licensing information.
+#
+
+_arguments \
+    {-a,--all}'[convert all whitespace, instead of just initial whitespace]' \
+    '--first-only[convert  only leading sequences of whitespace]' \
+    {-t,--tabs=}'[use comma separated list of tab positions]:tablist' \
+    '(* -)--help[display help message and exit]' \
+    '(* -)--version[output version information and exit]' \
+    '*:file:_files'



Messages sorted by: Reverse Date, Date, Thread, Author