From: Doug Kearns <dougkearns@gmail.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: screen session completion
Date: Sun, 21 Nov 2004 15:27:47 +1100 [thread overview]
Message-ID: <20041121042747.GC3922@localhost.localdomain> (raw)
Screen session completion seems to be broken; here's a quick fix.
Regards,
Doug
Index: Completion/Unix/Command/_screen
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_screen,v
retrieving revision 1.6
diff -u -r1.6 _screen
--- Completion/Unix/Command/_screen 7 Aug 2004 19:01:24 -0000 1.6
+++ Completion/Unix/Command/_screen 20 Nov 2004 21:05:10 -0000
@@ -76,18 +76,18 @@
case $state in
attached-sessions)
sessions=(
- ${${${${(f)"$(_call_program screen-sessions $words[1] \
- -ls)"}[2,-3]##[[:blank:]]}:#*Detached*}%[[:blank:]]*}
+ ${${${${${(f)"$(_call_program screen-sessions $words[1] \
+ -ls)"}[2,-4]}##[[:blank:]]}:#*(Detached|Dead)*}%[[:blank:]]*}
)
;;
detached-sessions)
sessions=(
- ${${${${(f)"$(_call_program screen-sessions $words[1] \
- -ls)"}[2,-3]##[[:blank:]]}:#*Attached*}%[[:blank:]]*}
+ ${${${${${(f)"$(_call_program screen-sessions $words[1] \
+ -ls)"}[2,-4]}##[[:blank:]]}:#*(Attached|Dead)*}%[[:blank:]]*}
)
;;
esac
-
+
# check if initial PID is necessary to make sessions unambiguous
if [[ ${#${(u)sessions#*.}} -lt $#sessions ]]; then
_wanted screen-sessions expl "${state%-*} screen process" \
next reply other threads:[~2004-11-21 7:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-21 4:27 Doug Kearns [this message]
2004-11-23 23:24 ` Doug Kearns
2004-11-27 7:15 ` Doug Kearns
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041121042747.GC3922@localhost.localdomain \
--to=dougkearns@gmail.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).