19 lines
328 B
Plaintext
19 lines
328 B
Plaintext
#autoload
|
|
|
|
if [[ -n $ZSH_TRACE_GENERIC_WIDGET ]]; then
|
|
local widget=$ZSH_TRACE_GENERIC_WIDGET
|
|
unset ZSH_TRACE_GENERIC_WIDGET
|
|
$widget _generic
|
|
return
|
|
fi
|
|
|
|
local curcontext="${curcontext:-}"
|
|
|
|
if [[ -z "$curcontext" ]]; then
|
|
curcontext="${WIDGET}:::"
|
|
else
|
|
curcontext="${WIDGET}:${curcontext#*:}"
|
|
fi
|
|
|
|
_main_complete "$@"
|