Bug 87450 - tab can have names, why displaying bash PS1 is not an option ?
Summary: tab can have names, why displaying bash PS1 is not an option ?
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.3.2
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 19:23 UTC by Mathieu Jobin
Modified: 2004-08-20 14:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Jobin 2004-08-18 19:23:56 UTC
Version:           1.3.2 (using KDE 3.2.3, Gentoo)
Compiler:          gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.7

using B2 windeco, we expect short titlebar
konsole is always really long

username@hostname:/usr/full/path - Tab name - Konsole

If a user like me what a shorter titlebar, I just have to rename the tab and have the bash PS1 disable in my titlebar.

i know its not only bash, pretty much all terminal application send a custom title, i'm just using bash as an example so everyone understand.
Comment 1 Kurt Hindenburg 2004-08-19 17:47:10 UTC
I don't quite understand what you want.  As per the konsole tips:

...that you can let Konsole set the current directory as the window title? For Bash, put 'export PS1=$PS1"\[\e]0;\H:\w\a\]"' in your ~/.bashrc . 
Comment 2 Mathieu Jobin 2004-08-19 21:15:18 UTC
sorry, I was not clear.

the konsole window titlebar have the following format
"{shell prompt} - {tab name} - Konsole"

I'd like it to be
"{tab name} - {shell prompt} - Konsole"

or even
"{tab name} - Konsole"



Comment 3 Waldo Bastian 2004-08-19 22:50:23 UTC
Just remove the \[\e] stuff from your PS1 then and set it to something like:
	PS1="\u@\h:\w> "

Then clear the title with
	echo -e "\033]2;\007"
Comment 4 Mathieu Jobin 2004-08-19 23:01:55 UTC
yeah, the \e made the PS1 to display nothing at all. i dont know where is the PS1 suggestion from, especialy it includes $PS1 ? i just ignore that in my last post since that was not exactly what i'm talking about.

but now, you comment makes me understand what he meant...
(\e == \033 && \H == \007) ? 'right' : 'no its about something else'

well, if I'm guessing right, I guess you can tell me how to clear my title bar
AND SET ALSO PLEASE :) and we will close the bug.
the bug will still be usefull as a reference for other people.

I tried 
echo -e "\033]2;\007"
echo -e "\033]0;\007"
echo -e "\e]2;\H"
echo -e "\e]0;\H"

I dont see any difference

Comment 5 Mathieu Jobin 2004-08-20 01:49:30 UTC
wait, if I 'su - root' it works, but 'su - $USER' does not ? 
what is the difference ? 
Comment 6 Waldo Bastian 2004-08-20 14:38:31 UTC
root uses another value for $PS1 than other users?

It's usually set in /etc/bash.bashrc, /etc/bashrc or /etc/profilerc