From 050c62d36a0286afde17e63896014d6f85a529ed Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 3 Feb 2002 21:29:36 +0000 Subject: 16500, 16507: have command completion respect PATH --- ChangeLog | 8 ++++++++ Completion/Zsh/Type/_command_names | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f540f8d5e..4b4e8be7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2002-02-03 Clint Adams + * Sven: 16507: Completion/Zsh/Type/_command_names: slight + improvement for 16500 to allow completion after ./ in + all cases + + * 16500: Completion/Zsh/Type/_command_names: + don't complete executable files in the current directory + if "." is not in path. + * 16540: Completion/Unix/Command/_rsync: include short options and local files. diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names index 006006348..613f1fe59 100644 --- a/Completion/Zsh/Type/_command_names +++ b/Completion/Zsh/Type/_command_names @@ -8,9 +8,13 @@ local args defs defs=( 'commands:external command:compadd -k commands' - 'executables:executable file or directory:_path_files -/g \*\(-\*\)' ) +[[ -n "$path[(r).]" || $PREFIX = */* ]] && + defs=( "$defs[@]" + 'executables:executable file or directory:_path_files -/g \*\(-\*\)' + ) + if [[ "$1" = -e ]]; then shift else -- cgit 1.4.1