about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-05-07 03:15:48 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-05-07 03:15:48 +0000
commitcf7d86e7b27f85728c9cc44ee95a8bdc48fe8d5e (patch)
treebcb1869f10d5458a8a31e4aca10ae1f5697b3f7c /Completion/Unix
parent198790001a2ac104bf0f52dddd9edb9513bd2bdb (diff)
downloadzsh-cf7d86e7b27f85728c9cc44ee95a8bdc48fe8d5e.tar.gz
zsh-cf7d86e7b27f85728c9cc44ee95a8bdc48fe8d5e.tar.xz
zsh-cf7d86e7b27f85728c9cc44ee95a8bdc48fe8d5e.zip
Merge of workers/21423.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_unexpand42
1 files changed, 42 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_unexpand b/Completion/Unix/Command/_unexpand
new file mode 100644
index 000000000..bc26a1be2
--- /dev/null
+++ b/Completion/Unix/Command/_unexpand
@@ -0,0 +1,42 @@
+#compdef unexpand
+#
+# $Id: _unexpand,v 1.1.2.2 2007/05/07 03:15:48 packersv Exp $
+#
+# Copyright (C) 2005 Travis L. Spencer
+# ALL RIGHTS RESERVED
+#
+# See the file LICENCE in the root of the zsh distribution for
+# licensing information.
+#
+
+local all tabs ret=1
+local -a args
+
+all="convert all whitespace, instead of just initial whitespace"
+tabs="use comma separated list of tab positions"
+args=( 
+    "(--all)-a[$all]"
+    "(--tabs)-t[$tabs]:tablist"
+    "*:file:_files"
+)
+
+if _pick_variant gnu="Free Soft" unix --version; then
+    args+=(
+        "(-a)--all[$all]"
+        "--first-only[convert only leading sequences of whitespace]"
+        "(-t)--tabs=[$tabs]:tablist"
+        "(* -)--help[display help message and exit]"
+        "(* -)--version[output version information and exit]"
+    )
+fi
+
+_arguments "$args[@]" && ret=0
+
+return ret
+
+: <<EMACS_LOCAL_VARIABLES
+Local Variables:
+mode: shell-script
+mode: flyspell-prog
+End:
+EMACS_LOCAL_VARIABLES