improve window titling

This commit is contained in:
finga 2016-11-07 14:30:01 +01:00
parent 2190a26a4a
commit f49a4968a7

2
.zshrc
View file

@ -35,7 +35,7 @@ select-word-style bash
# Show cwd in titlebar
precmd() {
tab_label=${PWD/${HOME}/\~}
echo -ne "\e]2;${tab_label}\a"
echo -ne "\e]2;${HOST}:${tab_label}\a"
}
# Report CPU usage for commands running longer than 5 seconds