Linux

Set Gnome Terminal Title In Gnome 3.14+

Posted by Weston Ganger on March 22, 2015

It really rattled my cage when Gnome terminal was changed in 3.14 where you couldn’t set titles on your tabs. I had a hard time finding a good way so I found a method that worked and made a bash function. Add this to your .bashrc


set-title(){
  ORIG=$PS1
  TITLE="\e]2;$@\a"
  PS1=${ORIG}${TITLE}
}

This method allows you to have spaces in your title too!


set-title my-title

set-title my really long title with spaces

I hope I made someones day with this one.


Related External Links:


Posted in Linux and Tagged with gnome-terminal gnome linux terminal command-line 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts