Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .