1.gnome terminal会把标题强行置为user@host, 所以第一步是去掉这个强制:
vi ~/.bashrc,然后注掉下面这段代码
If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac
2.安装xttitle (注意x后面有两个t)
3. xttitle "The title"