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

autoload functions #12

Open
MenkeTechnologies opened this issue Sep 5, 2020 · 2 comments
Open

autoload functions #12

MenkeTechnologies opened this issue Sep 5, 2020 · 2 comments

Comments

@MenkeTechnologies
Copy link

dkme, dkmd functions are defined in docker-aliases.plugin.zsh. This slows down startup and increases memory overhead. They should be in a dir in fpath and autoloaded so they are only defined when used. The plugin file should put this dir in fpath and autoload all the function files. This is zsh best practice.

@akarzim
Copy link
Owner

akarzim commented Sep 6, 2020

@MenkeTechnologies Thank you for pointing that out! Can you share a link to documentation on this ZSH best practice? And do not hesitate to submit a pull request on this topic

@MenkeTechnologies
Copy link
Author

This plugin adds to fpath and autoloads the plugin functions.
https://github.com/MenkeTechnologies/zsh-nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants