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

Re: whence and the location of a function definition



On Mon, Apr 6, 2015 at 6:43 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Apr 6,  6:57am, Mikael Magnusson wrote:
> }
> } another way is to apply this patch:
> } http://git.mikachu.zsh.jp/commit/?h=mika&id=225140c2aa029c9f19615c5894c4813a88afca49
> } and then run whence -F thefunc
>
> This looks useful, especially if the "(unknown)" branch could report
> whether the function is autoloaded.
>
> Any opinions on whether it needs its own option, or if it could always be
> appended to the "-v" output, e.g.
>
> compdef is a shell function from /usr/share/zsh/functions/Completion/compinit

Those both sound like good ideas to me (I'm not the original author of
the patch). :)

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author