1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00

16500, 16507: have command completion respect PATH

This commit is contained in:
Clint Adams 2002-02-03 21:29:36 +00:00
parent 45f68d770c
commit 050c62d36a
2 changed files with 13 additions and 1 deletions

View file

@ -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.

View file

@ -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