Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Enabling tab-completion for an alias
- X-seq: zsh-users 12922
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "David Sveningsson" <ext@xxxxxxxxxxx>
- Subject: Re: Enabling tab-completion for an alias
- Date: Fri, 13 Jun 2008 23:38:38 +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=5IjP6zxt0LlkRVLGF4+OJ+WLQ8iLkVgBxSY+seDD6NY=; b=AskJyX/+dWltodWhCP+Vi4yC1+EcMTI727iULVQbbQW7rT454QxU7oo6VQlslT7dDV /zTdeOJuh6Yng+Gmak0qsSxUASEF6g8lh2V+OZav75amkJ3eqLyJctvy4/vzeNTNbnRp Wj4DJlRKFdjk+2xU+VX2SUHLmUeHEBlYb+s7Q=
- 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=aTouCQ7/I/H8YtXHUvtEZliz+AomWaqd4dpk9k6vR2vyj6IQYKcG3OA6teVEQqjiKw XZDvpBogVKnZjXlsbx7/hrkgCyaV36isIWtt71+ic3anAEXa+RKGlyXVfCBoLsFy4wCx 59DR+G0g0ERkyOchqbJhU4zkHVJ77yGz482RM=
- In-reply-to: <4852E7D3.8080401@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4852DD2F.6030908@xxxxxxxxxxx> <237967ef0806131352o7c1db7a6se47368ff4a0c90a8@xxxxxxxxxxxxxx> <4852E7D3.8080401@xxxxxxxxxxx>
2008/6/13 David Sveningsson <ext@xxxxxxxxxxx>:
> Mikael Magnusson skrev:
>>
>> 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
>>
>
> Almost, it looks like
> alias svn="python ~/bin/svnc.py"
>
> Is it possible anyway? Otherwise I guess I could always just wrap that in a
> shellscript.
Easy solution is chmod +x ~/bin/svnc.py and change the alias to just the script.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author