Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: `whence -v X` shows file for functions, but not alias; workaround?



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