Commit 774380c3 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Send terminal title codes from login shell

As well as adding the terminal title codes to the prompt, also send
them on login, before tmux can start. This way tmux cannot intercept
the first title.
parent 4de18417
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -61,7 +61,9 @@ export CLICOLOR=yes
# (not suported by linux VT)
if [ "x$TERM" != xlinux ]; then
	hostname=`hostname -f`
	PROMPTCODES=`printf '\e]2;%s\007' "$hostname"`
	SET_TITLE=`printf '\e]2;%s\007' "$hostname"`
	PROMPTCODES="$SET_TITLE"
	echo "$SET_TITLE"
	unset hostname
fi