mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
moved from Completion/Core/_requested
This commit is contained in:
parent
d1d242bfd7
commit
a9fe340666
1 changed files with 19 additions and 0 deletions
19
Completion/Base/Core/_requested
Normal file
19
Completion/Base/Core/_requested
Normal file
|
@ -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
|
Loading…
Reference in a new issue