zsh-users
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: Sebastian Stark <seb-zsh@biskalar.de>
Cc: zsh-users@zsh.org
Subject: Re: _screen calls non-existent program
Date: Tue, 19 Oct 2010 14:51:21 +0200	[thread overview]
Message-ID: <87zkuagxbq.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <5C904183-5F0E-4971-B036-497A143DD227@biskalar.de> (Sebastian Stark's message of "Tue, 19 Oct 2010 14:21:12 +0200")

Sebastian Stark wrote:
> Looking at _screen I see that the list of existing sessions should come from
>
>   _call_program screen-sessions $words[1] -ls
>
> Now I'm wondering what the screen-sessions command should look like,
> it is not available on any of my machines. To me it looks a bit like
> it is the same as screen itself, because of the -ls option. But than I
> don't get the $words[1] part.

`_call_program' enables you to actually *change* the used program via a
style. `screen-session' is the tag used with the command
style. "$words[1]" is the first word of the command the completion is
run on. In other words "screen". Thus, the default program being run
here is "screen -ls".

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


  reply	other threads:[~2010-10-19 13:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 12:21 Sebastian Stark
2010-10-19 12:51 ` Frank Terbeck [this message]
2010-10-19 13:00   ` Sebastian Stark
2010-10-19 13:07     ` Mikael Magnusson
2010-10-19 13:48       ` Sebastian Stark
2010-10-19 12:58 ` Peter Stephenson
2010-10-19 13:52   ` Sebastian Stark
2010-10-19 14:13     ` Peter Stephenson
2010-10-19 23:11       ` Phil Pennock

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=87zkuagxbq.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=seb-zsh@biskalar.de \
    --cc=zsh-users@zsh.org \
    /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).