Skip to main content

load_from_cache

Function load_from_cache 

Source
pub fn load_from_cache(cache: &CompsysCache) -> Result<CompInitResult>
Expand description

Load _comps from existing cache (instantaneous)

Returns a CompInitResult populated from the SQLite cache without rescanning fpath. Use this after the cache has been built with build_cache_from_fpath.

This is the equivalent of compinit -C with a valid zcompdump - it skips the fpath scan entirely and just loads from cache.