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.
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 .
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"
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"
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
wait, if I 'su - root' it works, but 'su - $USER' does not ? what is the difference ?
root uses another value for $PS1 than other users? It's usually set in /etc/bash.bashrc, /etc/bashrc or /etc/profilerc