zsh-workers
 help / color / mirror / code / Atom feed
From: Doug Kearns <dougkearns@gmail.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: screen -R and -D completions
Date: Sat, 11 Jun 2005 00:06:43 +1000	[thread overview]
Message-ID: <20050610140643.GB6211@localhost.localdomain> (raw)

Complete -D (power detach) with attached sessions and -R (power attach)
with detached sessions.

Regards,
Doug

Index: Completion/Unix/Command/_screen
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_screen,v
retrieving revision 1.9
diff -u -r1.9 _screen
--- Completion/Unix/Command/_screen	12 Apr 2005 20:16:12 -0000	1.9
+++ Completion/Unix/Command/_screen	10 Jun 2005 14:05:58 -0000
@@ -58,10 +58,10 @@
 _arguments -C \
   "-a[force all capabilities into each window's termcap]" \
   '-A[adapt all windows to the new display width & height]' \
-  "-c[read configuration file instead of '.screenrc']:config file:_files -/" \
+  "-c[read configuration file instead of '.screenrc']:config file:_files" \
   '-d[detach the elsewhere running screen (with -r: reattach here)]: :->attached-sessions' \
-  '-dmS[start as daemon, screen session in detached mode]: :->detached-sessions' \
-  '-D[detach and logout remote (with -r: reattach here)]' \
+  '-dmS[start as daemon, screen session in detached mode]:session name' \
+  '-D[detach and logout remote (with -r: reattach here)]: :->attached-sessions' \
   '-e[change command characters]:command characters' \
   '-f-[set flow control]:flow control:((n\:flow\ control\ off a\:flow\ control\ auto \:flow\ control\ on))' \
   '-h[set the size of the scrollback history buffer]:buffer size' \
@@ -75,7 +75,7 @@
   '-p[preselect the named window]:window number or name:((\=\:windowlist -\:blank\ window \:window\ number))' \
   '-q[quiet startup, exit with non-zero return code if unsuccessful]' \
   '-r[reattach to a detached screen process]: :->detached-sessions' \
-  '-R[reattach if possible, otherwise start a new session]' \
+  '-R[reattach if possible, otherwise start a new session]: :->detached-sessions' \
   '-s[shell to execute rather than $SHELL]:shell name: _command_names -e' \
   '-S[name this session <pid>.sockname instead of <pid>.<tty>.<host>]:session name' \
   "-t[set title (window's name)]:title" \


                 reply	other threads:[~2005-06-10 14:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20050610140643.GB6211@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).