LinuxQuestions.org
Review your favorite Linux distribution.
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 11-08-2006, 09:43 AM   #1
Severus
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Konsole - How do I get rid of $PS1 from title?


I run a mixed Unix and Linux environment and use a Linux box to access my hosts via ssh.

However, Konsole insists on putting the $PS1 value in front of the window title I've specified. This is all well and good on Linux, but when I then ssh into a Unix box the value doesn't change and the title makes it look like I'm somewhere I'm not.

I really just want to get rid of this part of the title, but there doesn't seem to be an option to turn it off!

This has been driving me mad for weeks, so any help you could provide would be much appreciated.
 
Old 11-08-2006, 11:59 AM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
I think you'd have to change konsole's source code, so it doesn't read $PS1, or set $PS1 in you Unix environment.
 
Old 11-08-2006, 12:00 PM   #3
AlbinoJap
Member
 
Registered: Mar 2004
Posts: 36

Rep: Reputation: 15
You can probably clear this up by setting the title in your shell's RC file. Check out this article. It should get you pointed in the right direction.

http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
 
Old 11-08-2006, 01:16 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Do you mean konsole's window title-bar title, the tab name or something else?
 
Old 11-09-2006, 04:39 AM   #5
Severus
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlbinoJap
You can probably clear this up by setting the title in your shell's RC file. Check out this article. It should get you pointed in the right direction.
Thnaks that's pretty interesting.

However, I want to change Konsole rather than all hosts and users that I might connect to.

Gterm has a handy option to turn this "feature" off, so I might have to revert to that...
 
Old 11-09-2006, 03:33 PM   #6
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
So, if you don't want to stick to Konsole, Xterm is an excellent choice.
 
Old 11-09-2006, 04:29 PM   #7
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
Why not just set the title to something else with

Code:
echo -n  "\e]0;TEXT\007"
Replace TEXT with whatever you want.
 
  


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 02:32 PM
Can't call method "title" on undefined title in Perl script scuzzman Programming 12 12-11-2009 04:40 AM
Bash: set Konsole window title to current command bforbes Programming 5 04-19-2006 11:44 AM
Konsole title bar LocoMojo Linux - Software 2 01-22-2006 10:02 AM
Setting PS1 variable for KDE Konsole shell (RH9) robertmarkbram Linux - Software 4 10-14-2003 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration