summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/X/Type/_x_name9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/X/Type/_x_name b/Completion/X/Type/_x_name
new file mode 100644
index 000000000..38d4c26d3
--- /dev/null
+++ b/Completion/X/Type/_x_name
@@ -0,0 +1,9 @@
+#autoload
+
+local x="$argv[(I)-X]"
+
+if (( x )); then
+  _message -r "$argv[x + 1]"
+else
+  _message 'name'
+fi