blob: ad334da9df638723593c04b07df610fe5b94b393 (
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="correct-word:::"
else
curcontext="expand-word:${curcontext#*:}"
fi
_main_complete _expand
|