How do I setup the console window title via `.bash_profile` for Cygwin and Git for Windows?

uname="$(uname)"
case "${uname}" in
	CYGWIN*)	title='Cygwin';;
	MINGW*)		title='Git for Windows';;
	*)			title='Unknown'
esac
PS1+='\[\e]0;${title}\e\\\]'