Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: dumb completion question
- X-seq: zsh-users 11859
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: dumb completion question
- Date: Tue, 18 Sep 2007 21:56:28 +0200
- In-reply-to: <200709181700.l8IH0T4Y023333@xxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070918100642.GA20193@xxxxxxxxx> <20070918144612.GA12974@xxxxxxxxx> <200709181500.l8IF04Ft022305@xxxxxxxxxxxxxx> <20070918151536.GA15903@xxxxxxxxx> <200709181700.l8IH0T4Y023333@xxxxxxxxxxxxxx>
> Now I look, the problem is another quoting problem:
Doooh! Thanks a lot for finding this!
For the records, here is my new _cssh:
(may it'll make it into the CVS?)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
#compdef cssh crsh
local definedclusters
definedclusters=($(grep '^clusters' $HOME/.csshrc | cut -d= -f2- 2>/dev/null))
_arguments \
'-h[help]' \
'-H[show man page]' \
'-v[show version]' \
'-d[enable basic debugging mode]' \
'-D[enable extended debugging mode]' \
'-q[enable automatic quit after last window is closed]' \
'-Q[disable automatic quit after last window is closed]' \
'-u[output configuration]' \
'-g[enable window tiling]' \
'-G[disable window tiling]' \
'-c[use additional cluster file]:cluster file:_files' \
'-l:username:_users' \
'-T:window title prefix:' \
'-o:arguments to ssh or rsh:' \
'-t:arguments to terminals:' \
'-i[ignore errors from unresolvable hostnames]' \
'-e[evaluate arguments to identify potential errors]:userhostport:_user_at_host' \
'*:cssh clusters:($definedclusters)'
# original, completing just user@host:
# '*:userhostport: _alternative hosts:host:_hosts usersathosts:userathost:_user_at_host'
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
Bye,
Andy.
--
The typewriting machine, when played with expression, is no more
annoying than the piano when played by a sister or near relation.
-- Oscar Wilde
Messages sorted by:
Reverse Date,
Date,
Thread,
Author