diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:05:04 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:05:04 +0000 |
| commit | 1e361dac9ce4b5b895d554e3406b70f0f2885711 (patch) | |
| tree | 10dda25f77fdec97cde2e5c42ea2415fb271dfd5 /Completion/Base/Core | |
| parent | moved to Completion/Base/Core/_wanted (diff) | |
| download | zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.tar zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.tar.gz zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.tar.bz2 zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.tar.lz zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.tar.xz zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.tar.zst zsh-1e361dac9ce4b5b895d554e3406b70f0f2885711.zip | |
moved from Completion/Core/_wanted
Diffstat (limited to 'Completion/Base/Core')
| -rw-r--r-- | Completion/Base/Core/_wanted | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Completion/Base/Core/_wanted b/Completion/Base/Core/_wanted new file mode 100644 index 000000000..3e25fdbbc --- /dev/null +++ b/Completion/Base/Core/_wanted @@ -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 |
