From 8068d1cde76a1939bdf3b3110c5e8ac3b84714ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 22 Oct 2017 22:08:46 +0200 Subject: Add st to title switch for terminals --- bashrc | 2 +- zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index f36391e..0b7cf08 100644 --- a/bashrc +++ b/bashrc @@ -37,7 +37,7 @@ function settitle { echo -ne "\033]0;`whoami`@`hostname`:`pwd`\007" } case "$TERM" in - xterm*|*rxvt*) + xterm*|*rxvt*|*st*) trap 'settitle' DEBUG ;; esac diff --git a/zshrc b/zshrc index ed2058d..ec502b6 100644 --- a/zshrc +++ b/zshrc @@ -109,7 +109,7 @@ compdef _gitbmerge gitbmerge ################################################################ case "$TERM" in - xterm*|*rxvt*) + xterm*|*rxvt*|*st*) precmd() { print -Pn "\e]0;%n@%m:%~ %(1j,%j job%(2j|s|) ,)\a" } -- cgit v1.2.3