feat(zsh): properly set tab titles

This commit is contained in:
Price Hiller 2023-12-11 15:32:02 -06:00
parent 0a49828075
commit ca859c8410
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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\\"
}