-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
autoloadis a zsh builtin, its doc can be found inman zhsbuiltins.-U: alias expansion is suppressed when the function is loaded.-z: The flags-zand-kmark the function to be autoloaded using the zsh or ksh style, as if the optionKSH_AUTOLOADwere unset or were set, respectively
the meaning of KSH_AUTOLOAD is defined in man zhsoptions:
Emulate ksh function autoloading. This means that when a function is autoloaded, the corresponding file is merely executed, and must define the function itself. (By default, the function is defined to the contents of the file. However, the most common ksh-style case - of the file containing only a simple definition of the function - is always handled in the ksh-compatible manner.)
- autoloading functions: https://zsh.sourceforge.io/Doc/Release/Functions.html
- what does autoload do in Zsh? https://stackoverflow.com/q/30840651/6064933
- zsh autoload, what is it good for? https://stackoverflow.com/q/4493173/6064933
Metadata
Metadata
Assignees
Labels
No labels