zsh-users/zsh-syntax-highlighting

path_prefix: Use short-circuit glob qualifier

Open

#210 geöffnet am 30. Sept. 2015

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Shell (1.371 Forks)batch import
Taskgood first issueperformance

Repository-Metriken

Stars
 (22.617 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

zsh-5.0.6 and newer include the (Y) glob qualifier, which causes a glob pattern to stop looking for matches in the filesystem as soon as N matches have been found.

_zsh_highlight_main_highlighter_check_path should use (Y1), if supported, when testing the path_prefix case. This might make a difference in highlighting of glob patterns that apply to large directories or under slow mount points.

Contributor Guide