From 42cdb33949473fc89a15b5ad0e8c202799f93b4a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 4 Oct 2021 18:44:52 +0200 Subject: [PATCH] zshrc: support setting title in foot terminal emulator 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a992e3f..29b8b86 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 -- 2.1.4