1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/Builtins/_source

15 lines
226 B
Plaintext
Raw Normal View History

#compdef source .
1999-04-15 20:05:38 +02:00
if [[ CURRENT -ge 3 ]]; then
compset -n 2
_normal
1999-04-15 20:05:38 +02:00
else
if [[ -prefix */ && ! -o pathdirs ]]; then
_files
elif [[ $service = . ]]; then
_files -W path
else
_files -W "(. $path)"
fi
1999-04-15 20:05:38 +02:00
fi