I took a look in the /etc/bash_completion code. <br>I found my answer, partly.<br>I wanted to complete with the possible list of existing screens, when reattaching one (-r|-R): only problem was that everyone has to remember the number screen assigned to the screen wanted, since when the screen is created it gets a name like 424234.name_that_i_chose . So I wanted autocomplete to work even with name_that_i_chose and to fill the command like: 'screen -R 424234.name_that_i_chose'<br>
<br>So I managed to fix the sed commands, I noticed too that -r and -R switches where associated with $prev not with $preprev, so if -r|-R was not the latest switch on the commandline it would not get completed. Fixed that too. On Debian squeeze it works as expected.<br>
See the attached patch .<br>See also <a href="http://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311540&group_id=100114">http://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311540&group_id=100114</a><br>
<br>Package devs could you please close this bug?<br><br><div class="gmail_quote">2009/3/11 <a href="mailto:al@sxipper.net">al@sxipper.net</a><span dir="ltr"></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to know if existsted any trick for the GNU screen program.<br><br>I do not know any: it would be nice to complete screen command line with both a list of names of the started screens and their full identifier (eg. 23442.abcde)<br>
<br>The list afaik is gotten through '/bin/screen -l'<br><br>The completion would result in 'screen 23442.abcde' in case user writes 'screen abc[TAB]' or 'screen 234[TAB]'<br><br>Any hints?<br>
<br>Would it be interesting to integrate it in?<br><br><br>Thank you,<br><br>Regards.<br>
</blockquote></div><br>