shell-integration/zsh: enable title changes

This commit is contained in:
Mitchell Hashimoto
2023-08-04 11:14:45 -07:00
parent b11734bd67
commit 363e911f77

View File

@ -194,6 +194,12 @@ _ghostty_deferred_init() {
_ghostty_report_pwd"
_ghostty_report_pwd
# Enable terminal title changes.
functions[_ghostty_precmd]+="
builtin print -rnu $_ghostty_fd \$'\\e]2;'\"\${(%):-%(4~|…/%3~|%~)}\"\$'\\a'"
functions[_ghostty_preexec]+="
builtin print -rnu $_ghostty_fd \$'\\e]2;'\"\${(V)1}\"\$'\\a'"
# Enable cursor shape changes depending on the current keymap.
# This implementation leaks blinking block cursor into external commands
# executed from zle. For example, users of fzf-based widgets may find