From: Michael Prokop Date: Mon, 4 Oct 2021 16:44:52 +0000 (+0200) Subject: zshrc: support setting title in foot terminal emulator X-Git-Tag: v0.19.1~7 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=42cdb33949473fc89a15b5ad0e8c202799f93b4a 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 --- 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