#compdef -k complete-word \C-xe # Simple completion front-end implementing expansion. # # If configurations keys with the prefix `expandword_' are # given they override those starting with `expand_'. local curcontext="$curcontext" if [[ -z "$curcontext" ]]; then curcontext="expand-word:::" else curcontext="expand-word:${curcontext#*:}" fi _main_complete _expand