[Bash-completion-devel] [PATCH] screen: Omit pid when listing sessions

Ville Skyttä ville.skytta at iki.fi
Tue May 17 17:10:40 UTC 2011


On 05/16/2011 11:46 PM, Alexey Zaytsev wrote:
> Signed-off-by: Alexey Zaytsev <alexey.zaytsev at gmail.com>
>
> ---
> 
> Hi.
> 
> When running multiple screen sessions on a busy machine, the pid part
> would normaly get into the completions way. Luckily, screen does not
> require it when manipulating a session.
> 
> The only drawback I see is if you are running two or more sessions with
> the same name, the completion would show both sessions, and screen requires
> the pid in this case. But I doubt this is a major use case, and screen
> fails gracefully here:
[...]

I like the basic idea, but I also think we can do a bit better than that
- just figure out an unique name for each session, dropping pids where
possible, and also handle the case where the user completes on a session
name starting with a pid.  This is now implemented in git:

http://git.debian.org/?p=bash-completion/bash-completion.git;a=commitdiff;h=6e4912d9cc006b1f63dc1751a671a402a1fbdf02



More information about the Bash-completion-devel mailing list