Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2007, 02:32 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Finland
Distribution: Kubuntu
Posts: 11

Rep: Reputation: 0
Making rxvt-unicode change window title when using ssh

When I start rxvt-unicode (or urxvt) it has "user@local: ~" as the windows title. If I enter another directory, it changes to "user@local: ~/anotherdir". However, if I ssh to another machine from my home directory, it still says "user@local: ~" instead of "another_user@remote: ~". I'd prefer the latter since it would ease identifying the terminal windows. Is there anything I should try?

I'm using Kubuntu Feisty with rxvt-unicode 8.1.
Old 10-15-2007, 03:07 PM   #2
LQ Newbie
Registered: Mar 2004
Location: Finland
Distribution: Kubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Okay, consider this resolved. I was instructed in IRC to add the next line to ~/.bashrc on the remote machine:

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
Works very well.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
konsole window title change in SSH session maenho Linux - Software 4 08-31-2010 02:32 PM
Can I change title bar content in an application window? dhave Linux - Desktop 4 09-19-2007 01:27 PM
Change font COLOR in window title aeruzcar Linux - General 3 09-14-2005 11:26 PM
How to change window title font size in Gnome2.2(sawfish) zhaoyoubing Linux - Newbie 0 07-19-2003 09:05 PM
change window title in terminal sandman Linux - General 4 12-15-2002 03:55 AM

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration