Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
which completion function are used for aliases?
- X-seq: zsh-users 10075
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: which completion function are used for aliases?
- Date: Sat, 25 Mar 2006 01:08:35 +0100
- Kinfo: virscan ok
- Kinfo: !spam auth
- Kreccount: 1
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
When completing the options of an alias, is there a way to make zsh use the
completion function of the corresponding command?
Say, if
condor:~>print ${_comps[program1]}
_program1
condor:~>alias program2
program2=program1 --param1
then I would like zsh to use the completion function _program1 for the
completion of program2? Of course I could manually define
compdef _program1 program2
But is it possible to that automatically for (simple) aliases?
Chau,
Andy.
--
Fotos: francisco.spiegl.de o _ _ _
Infos: peru.spiegl.de __o /\_ _ \\o (_)\__/o (_) -o)
Andy, Heidi, Francisco _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
heidi.und.andy@xxxxxxxxx (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Ever wonder about those people who spend $2.00 a piece on those little
bottles of Evian water? Try spelling Evian backwards: NAIVE
(George Carlin, US comedian)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author