zshrc: support setting title in foot terminal emulator
authorMichael Prokop <mika@grml.org>
Mon, 4 Oct 2021 16:44:52 +0000 (18:44 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 4 Oct 2021 16:46:10 +0000 (18:46 +0200)
foot is a fast, lightweight and minimalistic Wayland terminal emulator,
see https://codeberg.org/dnkl/foot

Thanks: Alexander Kobel for the patch

etc/zsh/zshrc

index a992e3f..29b8b86 100644 (file)
@@ -2572,7 +2572,7 @@ function grml_reset_screen_title () {
     # see http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
     [[ ${NOTITLE:-} -gt 0 ]] && return 0
     case $TERM in
-        (xterm*|rxvt*|alacritty)
+        (xterm*|rxvt*|alacritty|foot)
             set_title ${(%):-"%n@%m: %~"}
             ;;
     esac
@@ -2609,7 +2609,7 @@ function grml_cmd_to_screen_title () {
 
 function grml_control_xterm_title () {
     case $TERM in
-        (xterm*|rxvt*|alacritty)
+        (xterm*|rxvt*|alacritty|foot)
             set_title "${(%):-"%n@%m:"}" "$2"
             ;;
     esac