about summary refs log tree commit diff
path: root/Completion/Builtins
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:26:59 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:26:59 +0000
commitb8821e159a1d2b834d3785194c21316789d35c84 (patch)
tree577e6c3d939c33425ad66f3e4018daeb141fb8f2 /Completion/Builtins
parentd9ba273ed79b4726ace61d365cb3699ecd45f257 (diff)
downloadzsh-b8821e159a1d2b834d3785194c21316789d35c84.tar.gz
zsh-b8821e159a1d2b834d3785194c21316789d35c84.tar.xz
zsh-b8821e159a1d2b834d3785194c21316789d35c84.zip
moved to Completion/Zsh/Command/_compdef
Diffstat (limited to 'Completion/Builtins')
-rw-r--r--Completion/Builtins/_compdef52
1 files changed, 0 insertions, 52 deletions
diff --git a/Completion/Builtins/_compdef b/Completion/Builtins/_compdef
deleted file mode 100644
index eb1a2ebb6..000000000
--- a/Completion/Builtins/_compdef
+++ /dev/null
@@ -1,52 +0,0 @@
-#compdef compdef
-
-local state line expl list disp curcontext="$curcontext"
-typeset -A opt_args
-
-_arguments -C -s -A "-*" -S \
-  '(-d)-a[make function autoloadable]' \
-  '(-d -p -P)-n[leave existing definitions intact]' \
-  ':completion function:->cfun' \
-  '*:commands: _command_names' \
- - d \
-  '(-a -n)-d[delete]:*:completed command:->ccom' \
- - p \
-  '(-n)-p[completion for command matching pattern]:completion function:->cfun:pattern' \
- - P \
-  '(-n)-P[as -p for commands without own completion]:completion function:->cfun:pattern' \
- - k \
-  '-k[define widget and key binding]:completion function:->cfun:style:->style:*:key' \
- - K \
-  '-K[define multiple widgets based on function]:*::: :->multi' && return 0
-
-if [[ $state = multi ]]; then
-  case $(( CURRENT % 3 )) in
-  0) _message key
-     return 1;;
-  1) state=cfun;;
-  2) state=style;;
-  esac
-fi
-
-case $state in
-  ccom)
-    _wanted commands expl 'completed command' compadd -k _comps
-  ;;
-  cfun)
-    list=( ${^fpath:/.}/_(|*[^~])(:t) )
-    if zstyle -T ":completion:${curcontext}:functions" prefix-hidden; then
-      disp=( ${list[@]#_} )
-      _wanted functions expl 'completion function' \
-          compadd -d disp -a list
-    else
-      _wanted functions expl 'completion function' compadd -a list
-    fi
-  ;;
-  style)
-    _wanted widgetstyle expl 'widget style' \
-        compadd -M 'r:|-=* r:|=*' \
-            complete-word delete-char-or-list expand-or-complete \
-            expand-or-complete-prefix list-choices menu-complete \
-            menu-expand-or-complete reverse-menu-complete
-  ;;
-esac