Parobalth
  • Home
  • Categories
  • Tags
  • Archives

Screen: Name of program in window title

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:

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


Published

Oct 26, 2016

Last Updated

Nov 13, 2016

Category

Computer

Tags

  • bash 4
  • screen 1
  • title 1
  • xterm 3

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor