aboutsummaryrefslogtreecommitdiff
path: root/zshrc.d/title
blob: 18b19d1440ace6997bcb3ef486bdcaada00554e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# vim: ft=zsh

case "$TERM" in
	xterm*|*rxvt*|*st*)
		precmd() {
			print -Pn "\e]0;%n@%m:%~  %(1j,%j job%(2j|s|) ,)\a"
		}
		preexec() {
			print -Pn "\e]0;%n@%m:%~ !$1\a"
		}
		;;
esac