summary refs log tree commit diff
path: root/Completion/Unix/Command/_expand_cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_expand_cmd')
-rw-r--r--Completion/Unix/Command/_expand_cmd16
1 files changed, 16 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_expand_cmd b/Completion/Unix/Command/_expand_cmd
new file mode 100644
index 000000000..3f297dce2
--- /dev/null
+++ b/Completion/Unix/Command/_expand_cmd
@@ -0,0 +1,16 @@
+#compdef expand gexpand
+
+local -a args
+
+if _pick_variant gnu=GNU unix --version; then
+  args=(
+    '(-i --initial --help)'{-i,--initial}"[don't convert tabs after non blanks]"
+    '(-t --tabs --version)'{-t+,--tabs=}'[specify tab width]:list of tab positions'
+    '(* -)--help[display usage information]'
+    '(* -)--version[output version information]'
+  )
+else
+  args=( -A "-*" '(-t --tabs)'{-t+,--tabs=}'[specify tab width]:list of tab positions' )
+fi
+
+_arguments -s -S "$args[@]" '*:file:_files'