mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
12 lines
344 B
Plaintext
12 lines
344 B
Plaintext
#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
|