1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-08 12:01:21 +02:00
zsh/Completion/Commands/_expand_word
2000-06-07 06:47:40 +00:00

16 lines
422 B
Text

#compdef -K _expand_word complete-word \C-xe _list_expansions list-choices \C-xd
# Simple completion front-end implementing expansion.
setopt localoptions nullglob rcexpandparam extendedglob
unsetopt markdirs globsubst shwordsplit nounset ksharrays
local curcontext="$curcontext"
if [[ -z "$curcontext" ]]; then
curcontext="expand-word:::"
else
curcontext="expand-word:${curcontext#*:}"
fi
_main_complete _expand