mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-13 03:30:54 +02:00
16500, 16507: have command completion respect PATH
This commit is contained in:
parent
45f68d770c
commit
050c62d36a
2 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,13 @@
|
||||||
2002-02-03 Clint Adams <clint@zsh.org>
|
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
|
* 16540: Completion/Unix/Command/_rsync: include short options and
|
||||||
local files.
|
local files.
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,13 @@ local args defs
|
||||||
|
|
||||||
defs=(
|
defs=(
|
||||||
'commands:external command:compadd -k commands'
|
'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
|
if [[ "$1" = -e ]]; then
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue