Summary: | Konsole window title as tab captions | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | A KDE User <spubpwd> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
A KDE User
2005-03-30 17:38:02 UTC
I think it is possible to do what you want now. There are a couple of 'tips' for this... Anyway, try this: export PS1="% \[\e]30;\u@\h\w\a\]" This will make the tabs and window title user@host <current directory> You can of course change this to suit your needs. I likely need to explain these options better in the Handbook. ..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 . ...that you can let Konsole set the current directory as the session name? For Bash, put 'export PS1=$PS1"\[\e]30;\H:\w\a\]"' in your ~/.bashrc . export PS1="\[\033[0;32m\](\[\033[1;34m\]\u\[\033[1;32m\]@\[\033[1;34m\]\h\[\033[0;32m\])-(\[\033[0;36m\]$(date +%H:%M)\[\033[0;32m\])-(\[\033[0;36m\]\w\[\033[0;32m\])\[\033[0;36m\]>\[\033[0;37m\] \[\e]30;\u@\h \w\a\]" Is not only about "user@machine". In Gnome-terminal, I can see right now these labels for tabs when I am looking at the current tab list: "emerge (5 of 10) net/openssh-3.9_p1-r2 Compile", "Processes on machine04" (a top running), "user@machine04". In Konsole, I would see only "Shell 1", "Shell 2", "Shell 3" and I have to go into each shell to see in title bar "Processes on machine04", etc. And this is not too helpful on my dual head system with lot of Konsoles opened, each of them with many tabs. So with Gnome-terminal I do not have to load my brain with useless info like "In Shell #1 and I have an emerge running on machine04" and I do not have to keep track what I am doing in each tab in each Konsole. |