From 0c6cd454cc55c2b99d171b56da51318c6fc84f22 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:30:51 +0000 Subject: moved from Completion/Builtins/_source --- Completion/Zsh/Command/_source | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Completion/Zsh/Command/_source (limited to 'Completion/Zsh') diff --git a/Completion/Zsh/Command/_source b/Completion/Zsh/Command/_source new file mode 100644 index 000000000..96b6c21bd --- /dev/null +++ b/Completion/Zsh/Command/_source @@ -0,0 +1,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 -- cgit 1.4.1