about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_source
blob: 96b6c21bdfebb888899f10bc88be9de25ba52e84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#compdef source .

if [[ CURRENT -ge 3 ]]; then
  compset -n 2
  _normal
else
  if [[ -prefix */ && ! -o pathdirs ]]; then
    _files
  elif [[ $service = . ]]; then
    _files -W path
  else
    _files -W "(. $path)"
  fi
fi