Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze the possibility of autoloading functions in Zsh #2

Open
d3adb5 opened this issue Feb 9, 2022 · 0 comments
Open

Analyze the possibility of autoloading functions in Zsh #2

d3adb5 opened this issue Feb 9, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@d3adb5
Copy link
Owner

d3adb5 commented Feb 9, 2022

Zsh and shells like ksh have a builtin called autoload that can be used to load functions from $FPATH into memory. I remember reading somewhere that a reference would be loaded into memory, but not the function definition, or something along those lines.

If it can speed up the startup process for Zsh, as it has to load all the files in its configuration (not that it matters too much when it's <1s), change functions so they're in their own files somewhere under $FPATH.

@d3adb5 d3adb5 added the enhancement New feature or request label Feb 9, 2022
@d3adb5 d3adb5 self-assigned this Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant