zsh-users
 help / color / mirror / code / Atom feed
* Re: using completion rules of another application
  2010-11-09 10:38 using completion rules of another application Eric Smith
@ 2010-11-09  3:51 ` Roy Zuo
  2010-11-09 12:44 ` Jérémie Roquet
  1 sibling, 0 replies; 3+ messages in thread
From: Roy Zuo @ 2010-11-09  3:51 UTC (permalink / raw)
  To: Zsh Users

Hi,

Why not use this instead?

    vim =comm<tab>

Roy

On Tue, Nov 09, 2010 at 11:38:25AM +0100, Eric Smith wrote:
> Hi
> 
> If I save a command like, 
> echo "vim $(which $1)">bin/whichv
> (find the pathname of an executable with builtin `which'
> and then edit that pathname)
> 
> Now at the command line I want to type
> $ bin/whichv comm<tab>
> 
> I want to have the completions that `which' would have.
> 
> How would I do this?
> -- 
> - Eric Smith
> 

-- 


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

* using completion rules of another application
@ 2010-11-09 10:38 Eric Smith
  2010-11-09  3:51 ` Roy Zuo
  2010-11-09 12:44 ` Jérémie Roquet
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Smith @ 2010-11-09 10:38 UTC (permalink / raw)
  To: Zsh Users

Hi

If I save a command like, 
echo "vim $(which $1)">bin/whichv
(find the pathname of an executable with builtin `which'
and then edit that pathname)

Now at the command line I want to type
$ bin/whichv comm<tab>

I want to have the completions that `which' would have.

How would I do this?
-- 
- Eric Smith


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

* Re: using completion rules of another application
  2010-11-09 10:38 using completion rules of another application Eric Smith
  2010-11-09  3:51 ` Roy Zuo
@ 2010-11-09 12:44 ` Jérémie Roquet
  1 sibling, 0 replies; 3+ messages in thread
From: Jérémie Roquet @ 2010-11-09 12:44 UTC (permalink / raw)
  To: Zsh Users

Hi,

2010/11/9 Eric Smith <es@fruitcom.com>:
> If I save a command like,
> echo "vim $(which $1)">bin/whichv
> (find the pathname of an executable with builtin `which'
> and then edit that pathname)
>
> Now at the command line I want to type
> $ bin/whichv comm<tab>
>
> I want to have the completions that `which' would have.
>
> How would I do this?

compdef whichv=which

Best regards,

-- 
Jérémie


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

end of thread, other threads:[~2010-11-09 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-09 10:38 using completion rules of another application Eric Smith
2010-11-09  3:51 ` Roy Zuo
2010-11-09 12:44 ` Jérémie Roquet

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).