1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00
zsh/Completion/Builtins/_zmodload
1999-10-28 08:13:52 +00:00

14 lines
401 B
Text

#compdef zmodload
local fl="$words[2]" expl
if [[ "$fl" = -*(a*u|u*a)* || "$fl" = -*a* && CURRENT -ge 4 ]]; then
_description expl 'builtin command'
compadd "$expl[@]" "$@" - "${(k@)builtins}" && ret=0
elif [[ "$fl" = -*u* ]]; then
_description expl module
compadd "$expl[@]" - "${(@k)modules}"
else
_description expl 'module file'
compadd "$expl[@]" - ${^module_path}/*.s[ol](N:t:r)
fi