GNU screen dynamic window naming (tab titles)

gnu screen

Finally found the solution at https://www.gnu.org/software/screen/manual/screen.html#Naming-Windows

In ~/.bashrc,

export PS1='\u@\h:\w\$ '
export PS1='\[33k33\\\]'$PS1

In ~/.screenrc, replace ‘bash’ with the shell name (tsh, csh, zsh, etc) used by you

shelltitle "$ |bash"

Other source http://stackoverflow.com/questions/4530403/is-there-a-way-to-dynamically-update-a-window-name-in-gnu-screen

To set terminal title you might try http://code-and-hacks.peculier.com/bash/setting-terminal-title-in-gnu-screen/

Advertisements

Author: Michal Zuber

Full stack developer, biker and rollerblader. Owner and developer at https://nevilleweb.sk/ Co-founded http://neville.sk/ Blog at https://michalzuber.wordpress.com/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s