summaryrefslogtreecommitdiff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-01-28 16:34:12 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-01-28 16:34:12 +0000
commita2deb3854abfa4ef29fa35ab280399b10a17161a (patch)
tree4d0a989e1563c31936304423e373eccc1fa1a8be /Completion/Zsh
parent79e13d12096dd16202f2eebdb6859c9da37ca6c0 (diff)
downloadzsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.tar.gz
zsh-a2deb3854abfa4ef29fa35ab280399b10a17161a.zip
slight improvement for 16500 to allow completion after ./<TAB> in all cases (16507)
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Type/_command_names7
1 files changed, 1 insertions, 6 deletions
diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names
index 71c3adfd2..613f1fe59 100644
--- a/Completion/Zsh/Type/_command_names
+++ b/Completion/Zsh/Type/_command_names
@@ -10,15 +10,10 @@ defs=(
'commands:external command:compadd -k commands'
)
-if [[ -n "$path[(r).]" ]]; then
+[[ -n "$path[(r).]" || $PREFIX = */* ]] &&
defs=( "$defs[@]"
'executables:executable file or directory:_path_files -/g \*\(-\*\)'
)
-else
- defs=( "$defs[@]"
- 'executables:executable file or directory:_files -P/ -W/ -/g \*\(-\*\)'
- )
-fi
if [[ "$1" = -e ]]; then
shift