about summary refs log tree commit diff
path: root/Completion/Base/Utility
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:13:47 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:13:47 +0000
commit06e7790548e944ec46e25d6961523e59aa6ba5f1 (patch)
tree86428409fd95dcc2f819fb4024aa1c30b501a0d0 /Completion/Base/Utility
parent8b603585aaaec62243433b8dc915f2e590d6ab48 (diff)
downloadzsh-06e7790548e944ec46e25d6961523e59aa6ba5f1.tar.gz
zsh-06e7790548e944ec46e25d6961523e59aa6ba5f1.tar.xz
zsh-06e7790548e944ec46e25d6961523e59aa6ba5f1.zip
moved from Completion/Core/_call
Diffstat (limited to 'Completion/Base/Utility')
-rw-r--r--Completion/Base/Utility/_call_program13
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/Base/Utility/_call_program b/Completion/Base/Utility/_call_program
new file mode 100644
index 000000000..b038a80bc
--- /dev/null
+++ b/Completion/Base/Utility/_call_program
@@ -0,0 +1,13 @@
+#autoload +X
+
+local tmp
+
+if zstyle -s ":completion:${curcontext}:${1}" command tmp; then
+  if [[ "$tmp" = -* ]]; then
+    eval "$tmp[2,-1]" "$argv[2,-1]"
+  else
+    eval "$tmp"
+  fi
+else
+  eval "$argv[2,-1]"
+fi