Files
oh-my-zsh/lib
Robby RussellandClaude Fable 5.1 f9cba205e1 perf(termsupport): don't re-encode the cwd URL on every prompt
`omz_termsupport_cwd` percent-encoded $HOST and $PWD on every prompt,
each through a command substitution that forks a subshell. Keep the
encoded URL and only recompute it when $HOST or $PWD changed. The OSC 7
sequence is still emitted on every prompt as before.

Output verified identical for paths with spaces, unicode and `&`, for
the root directory, for Konsole (host omitted) and after a host change.
Measured on macOS arm64, zsh 5.9: ~2-9 ms -> 0.03 ms per prompt when
the directory is unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 08:10:43 -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