Is there a way to automatically have each window change its name to the name of the last program you ran from that window?
This would be more convenient than having to rename the windows manually.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can use shelltitle to do this.
Assuming you use bash, the following should work. Add this to your
.screenrc:where the “$ ” should match whatever is at the end of your prompt string ($PS1) and “bash” is the default title. Then add a null title escape sequence to the beginning of your prompt string:
which should go in your
.profileor whatever.