Appending to the Bash Title in a Gnome Terminal Window in Linux Mint 18


For some reason, they took away the ability to change the title of bash within a gnome-terminal window in the new Linux Mint 18 Sarah. I needed it to identify certain windows.

Add this bit to your .bashrc to get it back:

set-title(){
  ORIG=$PS1
  TITLE="\e]2;$@\a"
  PS1=${ORIG}${TITLE}
}
set-title "\u@\h:\w\$ [THE APPENDED TITLE]"