26763: fix problem on failed cd -s to relative path
[zsh.git] / Completion / Zsh / Command / _source
blob96b6c21bdfebb888899f10bc88be9de25ba52e84
1 #compdef source .
3 if [[ CURRENT -ge 3 ]]; then
4   compset -n 2
5   _normal
6 else
7   if [[ -prefix */ && ! -o pathdirs ]]; then
8     _files
9   elif [[ $service = . ]]; then
10     _files -W path
11   else
12     _files -W "(. $path)"
13   fi