mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 10:20:55 +01:00
11 lines
360 B
Text
11 lines
360 B
Text
#compdef zmodload
|
|
|
|
local fl="$words[2]" expl
|
|
|
|
if [[ "$fl" = -*(a*u|u*a)* || "$fl" = -*a* && CURRENT -ge 4 ]]; then
|
|
_wanted builtins expl 'builtin command' compadd "$@" - "${(k@)builtins}"
|
|
elif [[ "$fl" = -*u* ]]; then
|
|
_wanted modules expl module compadd - "${(@k)modules}"
|
|
else
|
|
_wanted files expl 'module file' _files -W module_path -/g '*.s[ol](:r)'
|
|
fi
|