zsh-users
 help / color / mirror / code / Atom feed
* which completion function are used for aliases?
@ 2006-03-25  0:08 Andy Spiegl
  2006-03-25 18:31 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Spiegl @ 2006-03-25  0:08 UTC (permalink / raw)
  To: zsh-users

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@spiegl.de (_)/ (_)  (_)        (_)   (_)    (_)'  _\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)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-27  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-25  0:08 which completion function are used for aliases? Andy Spiegl
2006-03-25 18:31 ` Bart Schaefer
2006-03-26 19:20   ` Andy Spiegl
2006-03-26 20:23     ` Peter Stephenson
2006-03-27  9:30       ` Andy Spiegl

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).