Ask Your Question

How to rename terminal tab in Fedora 21

asked 2015-01-05 12:00:58 -0600

penner gravatar image

updated 2015-01-07 13:54:40 -0600

Used to be able to right click on the tab. This no longer works.

EDIT: It's too bad gnome-terminal no longer supports setting the title but I understand their desire to keep the codebase small. I have switched to ROXTerm and it has this feature and more. You can make it look very close to gnome-terminal. Very happy so far.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2015-02-21 20:56:33 -0600

westonganger gravatar image

Create a function in ~/.bashrc


Then you use your function to set the tab title. It allows spaces in it too.

set-title my new tab title
edit flag offensive delete link more


This actually works. Thank you. I've marked this as the best answer as it does answer my original question.

penner gravatar imagepenner ( 2015-02-23 12:02:44 -0600 )edit

answered 2015-01-08 08:13:57 -0600

maxhaase gravatar image

updated 2015-01-10 01:53:37 -0600

Install ROXTerm. It's actually more feature-rich than GNOME Terminal.

sudo yum install roxterm

A comment about GNOME Terminal: I agree, that was indeed one of the dumbest things GNOME Terminal could have done, when one has a lot of servers to keep track of, removing the tab-labeling was a real stupid decision.

edit flag offensive delete link more

answered 2015-01-06 02:21:02 -0600

Woland gravatar image

This functionality was removed from the latest version of gnome-terminal.

From their Bugzilla:

The only way to set the title is through an xterm escape sequence.

You can add this function to your bashrc to work around this:

title () { echo -en "\033]0;$@\007" }

edit flag offensive delete link more


I've tried and it doesn't work (F21)

q2dg gravatar imageq2dg ( 2015-01-06 14:52:30 -0600 )edit

From the downvotes. I know this answer does not make people happy, but this is the actual answer to this question: Gnome terminal has just had a lot of its functions removed for various reasons. "Go install X" is not really an answer to THIS question. OK, go install Emacs and use Eshell---it is more extensible and feature rich than you can imagine, but it does not have tabs as such, but named buffers do the same thing better, IMHO.

Woland gravatar imageWoland ( 2015-01-25 18:47:08 -0600 )edit

My downvote is due to your solution doesn't work for me (Gnome 3.14.2, Fedora 21)

q2dg gravatar imageq2dg ( 2015-01-25 19:38:26 -0600 )edit

That function does not work with bash (4.3) and Gnome 3.14. (Syntax error.) Changing it to multi-line still doesn't work. @maxhasse's answer does work.

Nathan Kidd gravatar imageNathan Kidd ( 2015-05-21 09:23:09 -0600 )edit

answered 2016-03-07 13:25:20 -0600

Alenka gravatar image

PROMPT_COMMAND='echo -ne "\033]0;YOUR TITLE\007"'

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-01-05 12:00:58 -0600

Seen: 3,684 times

Last updated: Feb 21 '15