about summary refs log tree commit diff
path: root/Functions/Completion/__zmodload
blob: 78c7393a3aa3587dd64b103cca7f826bb87caa00 (plain) (blame)
1
2
3
4
5
6
7
8
9
#function 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