1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00

18462: complete files in addition to commands

This commit is contained in:
Oliver Kiddle 2003-04-23 12:00:57 +00:00
parent 9e302211ab
commit 29a3496ebb
2 changed files with 7 additions and 2 deletions

@ -1,5 +1,8 @@
2003-04-23 Oliver Kiddle <opk@zsh.org>
* 18462: Completion/Unix/Command/_sh: complete files in addition
to commands
* 18461: Completion/Unix/Type/_perl_builtin_funcs: handle cases
where the perlfunc man page is compressed
@ -14,7 +17,7 @@
* 18458: Completion/Unix/Command/_renice: new completion for renice
* 18458: Completion/Base/Utility/_describe: handle the prefix-needed style
* 18458: Completion/Base/Utility/_describe: handle prefix-needed style
2003-04-19 Felix Rosencrantz <f_rosencrantz@yahoo.com>

@ -16,7 +16,9 @@ else
local n=${words[(b:2:i)[^-]*]}
if (( n <= CURRENT )); then
compset -n $n
_normal && return 0
_alternative \
'files:file:_files' \
'commands:command:_normal' && return 0
fi
_default
fi