zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@sunsite.dk
Subject: which completion function are used for aliases?
Date: Sat, 25 Mar 2006 01:08:35 +0100	[thread overview]
Message-ID: <20060325000835.GA31757@spiegl.de> (raw)

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)


             reply	other threads:[~2006-03-25  0:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-25  0:08 Andy Spiegl [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060325000835.GA31757@spiegl.de \
    --to=zsh.andy@spiegl.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).