mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 00:21:27 +01:00
moved from Completion/Core/_call
This commit is contained in:
parent
8b603585aa
commit
06e7790548
1 changed files with 13 additions and 0 deletions
13
Completion/Base/Utility/_call_program
Normal file
13
Completion/Base/Utility/_call_program
Normal file
|
@ -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
|
Loading…
Reference in a new issue