1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 22:06:09 +08:00

lib: support simple terminal in title function

Fixes #9295
This commit is contained in:
Marc Cornellà 2020-09-29 18:34:35 +02:00
parent 2b59d052ef
commit 274df9dc29

View File

@ -17,7 +17,7 @@ function title {
: ${2=$1}
case "$TERM" in
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty)
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty|st*)
print -Pn "\e]2;${2:q}\a" # set window name
print -Pn "\e]1;${1:q}\a" # set tab name
;;