Perf: add ambiguous-hashed-command.zsh

This commit is contained in:
Roman Perepelitsa 2020-09-01 14:32:59 +02:00
commit c6f62dd69f
2 changed files with 43 additions and 0 deletions

View file

@ -173,6 +173,8 @@ _zsh_highlight_main__type() {
#
# % hash zsh=$commands[zsh]
# % zsh # <-- here the type of `zsh` is "command" rather than "hashed"
#
# See highlighters/main/test-data/ambiguous-hashed-command.zsh.
if [[ $cmd == /(|*/)$1 && $path[(Ie)${cmd:h}] != 0 ]]; then
REPLY=command
else