ZPLUG-HOOK-LOAD(5)

πŸŽ€ NAME πŸŽ€

zplug-hook-load β€” the commands you run after loading. Like, the little victory lap. πŸ’–

Oh and btw, this page lives in the ZPLUG Manual, and it's a section 5 situation (file formats, iykyk). πŸ¦‹


✨ SYNOPSIS ✨

zplug "username/reponame", hook-load:some_command

Real quick though, bestie β€” when we say package, we mean a string in exactly this format: "username/reponame". That's it, that's the whole definition. Periodt. πŸ’…


🌸 DESCRIPTION 🌸

Okay so here's the tea πŸ“: by using the hook-load tag, you get to pick whether the package you want to install gets installed as the plugin or as the command. Your call, your main character energy. πŸ‘‘

Table 1. zplug hook-load tag

  • Possive Values β€” (shell commands)
  • Default value β€” (none)

And that's not all, because ✨ besides ✨ β€” by using the zstyle command, you can change that default value whenever you want:

$ zstyle ":zplug:tag" hook-load "echo load"

It's giving customization. It's giving control. We love to see it. 🫢


πŸ”₯ EXAMPLES πŸ”₯

Wanna grant a right to execute? Say less:

$ zplug "b4b4r07/enhancd" \
    as:command, \
    use:enhancd.sh, \
    hook-load:"builtin cd $OLDPWD"

Look at that. Flawless. No notes. πŸ’…βœ¨


🌈 SEE ALSO 🌈


πŸ“š FURTHER DOCUMENTATION πŸ“š

See the references in official wiki page to get started using zplug. The wiki may perhaps be overwhelming for first-time users β€” and honestly? Fair. It's a lot. But you got this, bestie. 🧚


πŸ‘‘ AUTHORS πŸ‘‘

zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07). Many people have contributed to it. Legends, every single one. 🌟


πŸ’œ COPYING πŸ’œ

Copyright (C) 2015-2016 Masaki Ishiyama

MIT License


😭 REPORTING BUGS 😭

Report bugs to the zplug issues. Don't suffer in silence, fr fr. πŸ™ˆ


Okay that's the whole page, babe β€” and just so you have the receipts: this is the ZPLUG Manual, version dated 11/21/2016, page ZPLUG-HOOK-LOAD(5). Now go forth and hook-load your little heart out. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from