about summary refs log tree commit diff
path: root/Completion/Base/Utility/_call_program
blob: b038a80bcf805087f340893d2b2edaa548a47078 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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