Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `whence -v X` shows file for functions, but not alias; workaround?
- X-seq: zsh-users 22355
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: `whence -v X` shows file for functions, but not alias; workaround?
- Date: Thu, 12 Jan 2017 23:21:05 -0500
- In-reply-to: <CAM4j=kNi2MHm=hDDpKQ7vG8wAqR8dbpiOY1PhSetB=s2jRyJsw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAM4j=kNi2MHm=hDDpKQ7vG8wAqR8dbpiOY1PhSetB=s2jRyJsw@mail.gmail.com>
On 01/12/2017 12:24 PM, Timothee Cour wrote:
> * how do i search for where an alias is defined?
> `whence -v my_function`: works
> my_function is a shell function from /home/timothee/.zshrc
>
> `whence -v my_alias`: doesn't do that:
> my_alias is an alias for ...
> Could that be implemented? What's a workaround? (besides grep of course)
>
> * why not also include line info?
>
zsh -lxic : 2> >(grep -F '> alias')
Messages sorted by:
Reverse Date,
Date,
Thread,
Author