d3adb5 / d3adb5/dotfiles

Analyze the possibility of autoloading functions in Zsh

Open
#2 0 comments 0 reactions 1 assignee Claimed by @d3adb5 View on GitHub
enhancement
Dominant language
Lua
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.