LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-15-2007, 03:32 PM   #1
tkarkkainen
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, 04:07 PM   #2
tkarkkainen
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:

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


Reply


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 03:32 PM
Can I change title bar content in an application window? dhave Linux - Desktop 4 09-19-2007 02:27 PM
Change font COLOR in window title aeruzcar Linux - General 3 09-15-2005 12:26 AM
How to change window title font size in Gnome2.2(sawfish) zhaoyoubing Linux - Newbie 0 07-19-2003 10:05 PM
change window title in terminal sandman Linux - General 4 12-15-2002 04:55 AM


All times are GMT -5. The time now is 01:39 AM.

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