Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: a simple question



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