about summary refs log tree commit diff
path: root/Completion/Builtins/_source
blob: 0447bee103ce9c6ab8d2fb49eac357cf7088feaf (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 [[ $words[1] = . ]]; then
    _files -W path
  else
    _files -W "(. $path)"
  fi
fi