diff --git a/dots/.config/zsh/config/profile/profile/functions.zsh b/dots/.config/zsh/config/profile/profile/functions.zsh index c40aa2dd..9d8b15f8 100644 --- a/dots/.config/zsh/config/profile/profile/functions.zsh +++ b/dots/.config/zsh/config/profile/profile/functions.zsh @@ -172,3 +172,13 @@ File-Strip-Blank() { mv "${file}" "${file//[[:blank:]]/-}" done } + +precmd() { + if [[ -n "${WEZTERM_PANE}" ]]; then + echo "\x1b]0;wezterm\x1b\\" + fi +} + +preexec() { + echo "\x1b]0;${2}\x1b\\" +}