Files
oh-my-zsh/lib
Robby RussellandClaude Fable 5.1 ded814e0ac perf(appearance): cache the diff and ls capability probes
`diff --color` and `ls -G` (or `--color`, `gls`, `colorls` depending on
the OS) were probed with a fork each on every startup. Remember the
results in $ZSH_CACHE_DIR for a day, the same way lib/grep.zsh does.

The ls section is wrapped in an anonymous function so that the early
return for DISABLE_LS_COLORS still runs the cleanup at the end of the
file. Behaviour is otherwise unchanged.

Measured on macOS arm64, zsh 5.9: 5.7 ms -> 0.7 ms per interactive
start.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 08:05:29 -07:00
..
2025-07-21 18:39:25 +02:00
2024-11-21 09:01:48 +01:00
2022-01-03 13:50:50 +01:00