Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: a simple question
- X-seq: zsh-users 12261
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: a simple question
- Date: Thu, 29 Nov 2007 16:19:53 +0100
- In-reply-to: <200711291441.lATEf4OF006739@xxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071129134137.GG2541@xxxxxxxxx> <200711291345.lATDjFKF006076@xxxxxxxxxxxxxx> <20071129140709.GH2541@xxxxxxxxx> <200711291441.lATEf4OF006739@xxxxxxxxxxxxxx>
Peter Stephenson wrote:
> You mean you've tried and completion after
> ssh -l admin
> works while completion after
> alias sshadmin="ssh -l admin"
> sshadmin
> doesn't?
Correct.
> > In a "zsh -f" session it does work so it must be something in my settings...
>
> I presume you mean even after "compinit"
You are right :-)
> Try using the debug binding "^X?" to generate an output file which
> should show you if it's ever getting as far as ssh completion or is
> trying completion for something else.
^Xh gives me:
lama:~>ssh
tags in context :completion::complete:ssh::
argument-1 options (_arguments _ssh)
tags in context :completion::complete:ssh:argument-1:
hosts users (_alternative _ssh)
hosts (_hosts _combination _ssh_hosts _alternative _ssh)
hosts (_ssh_hosts _alternative _ssh _normal)
users (_users _combination _ssh_users _alternative _ssh)
lama:~>sshadmin
tags in context :completion::complete:::
all-files (_files _default)
tags in context :completion::complete:ssh::
argument-rest options (_arguments _ssh _ssh)
The files generated after ^X? differ pretty much, but both mention _ssh.
I put them here:
http://spiegl.de/zsh/zshdump-ssh.gz
http://spiegl.de/zsh/zshdump-sshadmin.gz
Thanks,
Andy.
--
If you're not confused, you're not trying hard enough.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author