Bug 122213 - configuration option to set new shell name
Summary: configuration option to set new shell name
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 133660 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-18 13:41 UTC by Mark Veltzer
Modified: 2007-05-08 00:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Veltzer 2006-02-18 13:41:41 UTC
Version:           1.6 (using KDE 3.5.1, Debian Package 4:3.5.1-2 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.14-2-686

Currently when I open a new shell in konsole it is automatically given the name "Shell No. %d" where %d is a sequence number. I'd like to control this string via a configuration option. I understand that I can control the shells name after I open it but what I'm asking is to control the DEFAULT name in order to keep me from having to change it all the time. To preserve the current behavior the default setting could be "Shell No. %num_shells" and I could change it to:
"Shell opened at %date"
"%num_shells"
"%user@%machine"
or any other string which will contain variables which will be substituted by konsole. The code for the variable substitution could be taken from any number of other programs who do the same (some of which are even in KDE). I'm not asking to support ANY VARIABLE and I understand that such a request is open ended and could never be completed. A set of 5-10 variables which are most useful is certainly enough.
Comment 1 Philip Rodrigues 2006-02-18 18:43:55 UTC
You can do the last one of your suggestions with:
PS1=$PS1"\[\e]30;\w\a\]"
in your ~/.bashrc or something.
Comment 2 Andreas Kling 2006-09-06 22:28:08 UTC
*** Bug 133660 has been marked as a duplicate of this bug. ***
Comment 3 Robert Knight 2007-05-08 00:16:42 UTC
KDE 4's live tab titles effectively implement this feature by allowing the tab names to match the current program, directory, user/host combination etc.