about summary refs log tree commit diff
path: root/Completion/Base/Widget/_expand_word
blob: 9b71dc830cc18462d52b787c892e0b57ada63ae1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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