From 26e5fe67ce21ddd545503a646ca36c013198bf4f Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:32:22 +0000 Subject: moved to Completion/Zsh/Command/_which --- Completion/Builtins/_which | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 Completion/Builtins/_which (limited to 'Completion/Builtins/_which') diff --git a/Completion/Builtins/_which b/Completion/Builtins/_which deleted file mode 100644 index ab6caeba7..000000000 --- a/Completion/Builtins/_which +++ /dev/null @@ -1,37 +0,0 @@ -#compdef which whence where type - -local farg aarg cargs args state line curcontext="$curcontext" - -cargs=( \ - '(-v -c)-w[print command type]' \ - '-p[always do a path search]' \ - '-m[treat the arguments as patterns]' \ - '-s[print symlink free path as well]' \ - '*:commands:->command' ) -farg='-f[output contents of functions]' -aarg='-a[print all occurences in path]' - -case ${service} in - whence) - _arguments -C -s -A "-*" -S \ - '(-c -w)-v[verbose output]' \ - '(-v -w)-c[csh-like output]' \ - "${cargs[@]}" "$farg" "$aarg" && return 0 - ;; - where) _arguments -C -s -A "-*" -S "${cargs[@]}" && return 0;; - which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" && return 0;; - type) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$farg" && return 0;; -esac - -if [[ "$state" = command ]]; then - - args=( "$@" ) - - _alternative -O args \ - 'commands:external command:compadd -k commands' \ - 'builtins:builtin command:compadd -k builtins' \ - 'functions:shell function:compadd -k functions' \ - 'aliases:alias:compadd -k aliases' \ - 'reserved-words:reserved word:compadd -k reswords' - -fi -- cgit 1.4.1