Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There are a number of questions about automatically naming screen windows based on what's running in them.

But sometimes why you created the window is more important than what you're doing in it.

Can I set up gnu screen so it prompts me for a title whenever I make a new window?

share|improve this question

2 Answers 2

This method works, but it requires a separate file.

Put this in your .screenrc:

bind c source $HOME/.screenrc_create

Then put this in ~/.screenrc_create:

screen
title
stuff ^u
share|improve this answer

Easy:

bind c  eval screen title
bind ^c eval screen title

The eval command evaluates each following commands in order (use quotes to embed spaces). Note that this is of limited flexibility, the commands don't block for user input - e.g. the title command is considered complete when the prompt is up. This is relevant if you're thinking of doing something with the copy command, which probably won't work out.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.