Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Enabling tab-completion for an alias
- X-seq: zsh-users 12920
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "David Sveningsson" <ext@xxxxxxxxxxx>
- Subject: Re: Enabling tab-completion for an alias
- Date: Fri, 13 Jun 2008 22:52:09 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=OaHqBVvXMJVTmVKTs1M4wUlvMd3YKO3DqqqqViyXUxA=; b=Vs4BPq9k3jWjU6wiSmJ/B2UOGcWc/HHwoCmr2lfyZqxORJf32M19Xes258a7RWqj74 +1u28pul0qSjLI1h0l5l0+DY9hGWAAb+5eS8FNyIx/xUfnsfNuvNN5TASdbIRZi0jo68 QPx/P/yduUsGGkvO8LQWA0heWBrsD7SkGqVPo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IqPvJ2V1ufIpshyN6DxDzj72tedy7I6acPxODyWgkt9r4C0kz6Q6o6pWhuEOzDSQew mB0oKM+y86UV8ILwzpvNutK6pk1kMW04Ygk6QdSXKNBIX7r3QK9EW00eJZTJFBBX3yuX knKng0jtWYnG+05ay7BBA8cW0B36Okv+NQq6I=
- In-reply-to: <4852DD2F.6030908@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4852DD2F.6030908@xxxxxxxxxxx>
2008/6/13 David Sveningsson <ext@xxxxxxxxxxx>:
> Hi, I'm having some trouble with tab-completion. I've created an alias for
> svn (subversion) which runs a pythonscript executing svn. One of the reasons
> for this is that I use the script to colorize the output.
>
> However this caused zsh to stop tab-completing svn commands, eg. I used to
> be able to type "svn res[tab]" and it completes to "svn resolved". Is there
> a way to enable the same tab-completions for my alias?
Assuming your alias is
alias svn="myfoobarscript --blabla"
then you can put in
compdef _svn myfoobarscript=svn
and it should complete the same as svn
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author