diff options
author | Clint Adams <clint@users.sourceforge.net> | 2002-02-03 21:29:36 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2002-02-03 21:29:36 +0000 |
commit | 050c62d36a0286afde17e63896014d6f85a529ed (patch) | |
tree | 092ee05b900d88297ffdb7db783d6bfb26daa29d | |
parent | 45f68d770c4bde2713888a9263da1ee88a7c78ad (diff) | |
download | zsh-050c62d36a0286afde17e63896014d6f85a529ed.tar.gz zsh-050c62d36a0286afde17e63896014d6f85a529ed.tar.xz zsh-050c62d36a0286afde17e63896014d6f85a529ed.zip |
16500, 16507: have command completion respect PATH
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | Completion/Zsh/Type/_command_names | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index f540f8d5e..4b4e8be7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2002-02-03 Clint Adams <clint@zsh.org> + * Sven: 16507: Completion/Zsh/Type/_command_names: slight + improvement for 16500 to allow completion after ./<TAB> 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 |