aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-10-22 22:08:46 +0200
committerKarel Kočí <cynerd@email.cz>2017-10-22 22:08:46 +0200
commit8068d1cde76a1939bdf3b3110c5e8ac3b84714ba (patch)
treeba5af450e5c47b903c77f268625466e827aecfb4
parent7d68f4b5f7adf9b2338055baa5e0bd1073c103a7 (diff)
downloadmyconfigs-8068d1cde76a1939bdf3b3110c5e8ac3b84714ba.tar.gz
myconfigs-8068d1cde76a1939bdf3b3110c5e8ac3b84714ba.tar.bz2
myconfigs-8068d1cde76a1939bdf3b3110c5e8ac3b84714ba.zip
Add st to title switch for terminals
-rw-r--r--bashrc2
-rw-r--r--zshrc2
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"
}