summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:04:20 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:04:20 +0000
commita9fe3406667e5db22dfd2e11f6dd44e9d3674fe8 (patch)
tree31e5f7c898b6b0e968de29724464a90d10ffcf36 /Completion
parentd1d242bfd7e312ce7e2a1b303f26a06539cf171c (diff)
downloadzsh-a9fe3406667e5db22dfd2e11f6dd44e9d3674fe8.tar.gz
zsh-a9fe3406667e5db22dfd2e11f6dd44e9d3674fe8.tar.xz
zsh-a9fe3406667e5db22dfd2e11f6dd44e9d3674fe8.zip
moved from Completion/Core/_requested
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/Core/_requested19
1 files changed, 19 insertions, 0 deletions
diff --git a/Completion/Base/Core/_requested b/Completion/Base/Core/_requested
new file mode 100644
index 000000000..5614098bc
--- /dev/null
+++ b/Completion/Base/Core/_requested
@@ -0,0 +1,19 @@
+#autoload
+
+local __gopt=-J
+
+if [[ "$1" = -([12]|)[VJ] ]]; then
+  __gopt="$1"
+  shift
+fi
+
+if comptags -R "$1"; then
+  if [[ $# -gt 3 ]]; then
+    _all_labels - "$__gopt" "$@" || return 1
+  elif [[ $# -gt 1 ]]; then
+    _description "$__gopt" "$@"
+  fi
+  return 0
+else
+  return 1
+fi