Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _screen calls non-existent program
- X-seq: zsh-users 15450
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- Subject: Re: _screen calls non-existent program
- Date: Tue, 19 Oct 2010 14:51:21 +0200
- Cc: zsh-users@xxxxxxx
- In-reply-to: <5C904183-5F0E-4971-B036-497A143DD227@xxxxxxxxxxx> (Sebastian Stark's message of "Tue, 19 Oct 2010 14:21:12 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <5C904183-5F0E-4971-B036-497A143DD227@xxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author