ZPLUG-DEFER(5)

πŸ’– zplug-defer πŸ’– β€” from the ZPLUG Manual, no cap

okay bestie, gather round, because this page is lowkey about ✨timing✨ and timing is everything πŸ•°οΈ


✨ NAME ✨

zplug-defer β€” it defers the loading of a package, periodt πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

zplug "username/reponame", defer:1

real quick though, because words matter: the word package here means the string in the format "username/reponame". that's the whole definition, don't overthink it 🫢

🌈 DESCRIPTION 🌈

so here's the tea πŸ“ β€” with the defer tag you get to set the priority of loading the packages. you're basically telling zplug "bestie, hold this one, i'll call you when i'm ready."

and if the value is 2 or above? zplug will source the plugin after compinit. iconic behaviour honestly πŸ‘‘

here's the zplug defer tag deets, table-ified into something your eyeballs can vibe with:

  • Possive Values β€” 0..3
  • Default value β€” 0

(and yes, that's literally how the table header is spelled in the original, we're keeping it, character for character, because the facts do not change just because the vibe did πŸ’€)

besides all that, by using the zstyle command you can change that default value:

$ zstyle ":zplug:tag" defer 1

πŸ“ EXAMPLES πŸ“

Priority:

$ zplug "~/.zsh", \
    as:plugin, \
    defer:1

look at that line continuation glow-up 🧚

πŸ‘€ SEE ALSO πŸ‘€

πŸ“š FURTHER DOCUMENTATION πŸ“š

see the references in the official wiki page to get started using zplug. and fr fr, heads up: the wiki may perhaps be overwhelming for first-time users 😭 we've all been there, it's giving "too much lore on episode one."

πŸ‘‘ AUTHORS πŸ‘‘

zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07). many people have contributed to it, and honestly? community effort slay 🌸

πŸ’… COPYING πŸ’…

Copyright (C) 2015-2016 Masaki Ishiyama

MIT License

πŸ› REPORTING BUGS πŸ›

report bugs to the zplug issues πŸ’œ


and that's the whole page, bestie β€” brought to you by the ZPLUG Manual, dated 12/03/2016, filed under ZPLUG-DEFER(5) βœ¨πŸ¦‹ go forth and defer responsibly πŸ’–

πŸ“¦ where this page comes from