mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-29 19:12:20 +01:00
moved from Completion/Core/_wanted
This commit is contained in:
parent
63425a2279
commit
1e361dac9c
1 changed files with 26 additions and 0 deletions
26
Completion/Base/Core/_wanted
Normal file
26
Completion/Base/Core/_wanted
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#autoload
|
||||
|
||||
local __targs __gopt=-J
|
||||
|
||||
if [[ "$1" = -C?* ]]; then
|
||||
__targs=( -C "${1[3,-1]}" )
|
||||
shift
|
||||
elif [[ "$1" = -C ]]; then
|
||||
__targs=( -C "$2" )
|
||||
shift 2
|
||||
else
|
||||
__targs=()
|
||||
fi
|
||||
|
||||
if [[ "$1" = -([12]|)[VJ] ]]; then
|
||||
__gopt="$1"
|
||||
shift
|
||||
fi
|
||||
|
||||
_tags "$__targs[@]" "$1"
|
||||
|
||||
while _tags; do
|
||||
_all_labels "$__gopt" "$@" && return 0
|
||||
done
|
||||
|
||||
return 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue