mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-21 18:46:06 +02:00
`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>