Introduction¶
Screen doesn’t set a useful window title. Usually all you get is bash, bash, bash and you have to set them manually with C-a A
.
Solution¶
I found a solution for bash from: http://aperiodic.net/screen/title_examples that works for me although it is a weird hack.
Insert in .screenrc
:
# 13.08.2016 inserted to get descriptive titles
shelltitle "$ |bash"
Insert in .bashrc
:
# 13.08.2016 inserted to get descriptive titles
export PS1='\[\033k\033\\\]\u@\h:\w\$ '
I think it would be an additional improvement to add the current path to the window title to see if you work local or remote. I am going to post if I find a better solution to this problem.
License of this blog post:
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.