Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: a simple question
- X-seq: zsh-users 12258
- From: Peter Stephenson <pws@xxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: a simple question
- Date: Thu, 29 Nov 2007 13:45:15 +0000
- In-reply-to: <20071129134137.GG2541@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071129134137.GG2541@xxxxxxxxx>
Andy Spiegl wrote:
> I've got an alias "sshadmin" for "ssh -l admin"
> In order to have the normal ssh-completion for this alias
> I thought it suffices to say:
> compdef _ssh sshadmin
>
> But I was wrong. :-(
Only in that usually it's unnecessary, unless you have turned on the
option "completealiases". If you haven't, the alias is expanded by
completion so the completion code sees "ssh -l admin" and everything
works.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author