why is screen not showing the current running process name? (Mac OSX Terminal bash)
Solution 1:
What is your bash prompt set to (i.e. the PS1 variable)?
Try the following in your .bashrc
or .profile
:
export PS1='\[\033k\033\\\]\u@\h:\w\$ '
and in your .screenrc:
shelltitle "$ |bash:"
This is what I have and it works. Basically, screen needs a magic string to know how your prompt ends so it can pick up the command that's running. You can vary it, but see the explanation on this page for more information on how it works:
- Setting the title to the name of the running program