diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-20 08:04:56 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-20 08:04:56 +0000 |
commit | c9bedcd98923cd9890bd5d92ec5b0ada57bccc31 (patch) | |
tree | c2cf4335940026af58d3d946bf16e70ccf773031 /Completion/Commands | |
parent | a903dcba4f0c0ae7b0b80d60604c8a30825aa4e1 (diff) | |
download | zsh-c9bedcd98923cd9890bd5d92ec5b0ada57bccc31.tar.gz zsh-c9bedcd98923cd9890bd5d92ec5b0ada57bccc31.tar.xz zsh-c9bedcd98923cd9890bd5d92ec5b0ada57bccc31.zip |
default values for styles in _expand_word, listing expansions with ^Xd, _expand uses add-space style (10854)
Diffstat (limited to 'Completion/Commands')
-rw-r--r-- | Completion/Commands/_expand_word | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/Commands/_expand_word b/Completion/Commands/_expand_word new file mode 100644 index 000000000..9b71dc830 --- /dev/null +++ b/Completion/Commands/_expand_word @@ -0,0 +1,13 @@ +#compdef -K _expand_word complete-word \C-xe _list_expansions list-choices \C-xd + +# Simple completion front-end implementing expansion. + +local curcontext="$curcontext" + +if [[ -z "$curcontext" ]]; then + curcontext="expand-word:::" +else + curcontext="expand-word:${curcontext#*:}" +fi + +_main_complete _expand |