about summary refs log tree commit diff
path: root/Completion/Commands/_expand_word
blob: 2e31b6ebc3a4d6c59bdc8d839a572053f8b6a2bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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