summary refs log tree commit diff
path: root/Completion/Builtins/_zmodload
blob: 112acb57c8934635b7f7b079102dfbfdaaba0ab1 (plain) (blame)
1
2
3
4
5
6
7
8
9
#defcomp zmodload

if [[ -mword 1 -*(a*u|u*a)* || -mword 1 -*a* && -position 3 -1 ]]; then
  complist -B
elif [[ -mword 1 -*u* ]]; then
  complist -s '$(zmodload)'
else
  complist -s '${^module_path}/*(N:t:r)'
fi