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

Re: Best practices for managing aliases in ohmyzsh?



On Tue, Aug 31, 2021 at 8:19 PM Steve Dondley <s@xxxxxxxxxxx> wrote:
>
> I believe functions are not stored in memory until they are called at
> least once in zsh if they are loaded with "autoload."

Essentially correct.  An abbreviated version is stored that provides
some details about how (and sometimes where) to load the "real"
content.  For a sufficiently small function, you're better off just
defining the function directly.




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