diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-01 15:29:41 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-01 15:29:41 +0000 |
commit | f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca (patch) | |
tree | c2a3b06a34243abe3826eead259bb08900f011f1 /Completion/Core/_parameters | |
parent | 26cf7b8d50f1b7d9d0b9115018ef4dc8624b5030 (diff) | |
download | zsh-f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca.tar.gz zsh-f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca.tar.xz zsh-f844c87a4d676bcc8ad7ac24b5132d7aa5ccfeca.zip |
zsh-workers/8840
Diffstat (limited to 'Completion/Core/_parameters')
-rw-r--r-- | Completion/Core/_parameters | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/Completion/Core/_parameters b/Completion/Core/_parameters index 3735702df..c7875abcf 100644 --- a/Completion/Core/_parameters +++ b/Completion/Core/_parameters @@ -10,79 +10,3 @@ _wanted parameters expl parameter || return 1 pars=( ${(k)parameters[(R)^*local*]} ) compadd "$expl[@]" "$@" - $pars - - -# The `-e' option does everything for parameter expansions of us. If -# we wouldn't have it, we would use something like: - -# If the first argument is `-s' or `-b' auto_param_slash will be tested -# and slashes will be added to parameters containing a directory. `-s' is -# for parameter expansions without braces and `-b' is for expansions with -# braces. A `-' as the first argument is ignored and in all cases all -# other arguments will be given to `compadd'. - -# setopt localoptions extendedglob - -# local pars expl slash suf - -# if [[ "$1" = -s ]]; then -# slash=normal -# suf="$2" -# shift 2 -# elif [[ "$1" = -b ]]; then -# slash=brace -# suf="$2" -# shift 2 -# elif [[ "$1" = - ]]; then -# shift -# fi - -# _description expl parameter - -# if [[ -n "$slash" && -o autoparamslash ]]; then -# local i dirs nodirs ret=1 - -# dirs=() -# nodirs=() - -# if zmodload -e parameter; then -# setopt localoptions extendedglob -# nodirs=( ${(k)parameters[(R)undefined]} ) -# pars=( ${(k)parameters[(R)^*(local|undefined)*]} ) -# else -# nodirs=( ${${(M)${(f)"$(typeset +)"}:#undefined *}##* } ) -# pars=( ${${${(f)"$(typeset +)"}:#*(local|undefined) *}##* } ) -# fi - -# for i in $pars; do -# if [[ -d "${(P)i}" ]]; then -# dirs=( $dirs $i ) -# else -# nodirs=( $nodirs $i ) -# fi -# done - -# if [[ "$slash" = normal ]]; then -# compadd -S "/${suf%% #}" -r ' [/:' "$expl[@]" "$@" - $dirs && ret=0 -# compadd -S "$suf" -r ' [:' "$expl[@]" "$@" - $nodirs && ret=0 -# elif [[ "$slash" = brace ]]; then -# compadd -S "}/${suf%% #}" -r '-:?#%+=[/}' "$expl[@]" "$@" - $dirs && ret=0 -# compadd -S "}$suf" -r '-:?#%+=[/}' "$expl[@]" "$@" - $nodirs && ret=0 -# fi - -# return ret -# else -# if zmodload -e parameter; then -# pars=( ${(k)parameters[(R)^*local*]} ) -# else -# pars=( ${${${(f)"$(typeset +)"}:#*local *}##* } ) -# fi - -# if [[ "$slash" = normal ]]; then -# compadd -S "$suf" -r ' [:' "$expl[@]" "$@" - $pars -# elif [[ "$slash" = brace ]]; then -# compadd -S "}$suf" -r '-:?#%+=[/}' "$expl[@]" "$@" - $pars -# else -# compadd "$expl[@]" "$@" - $pars -# fi -# fi |