Summary: | tab can have names, why displaying bash PS1 is not an option ? | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Mathieu Jobin <opensource> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.3.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mathieu Jobin
2004-08-18 19:23:56 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 . 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 |