ZPLUG-HOOK-BUILD(5)

πŸ“¦ version 2.4.2, in nixpkgs unstable

✨ NAME ✨

zplug-hook-build β€” the commands you run after installation or update, bestie πŸ’…

It's a section of the zplug manual (that's the (5) vibe, iykyk).


πŸŽ€ SYNOPSIS πŸŽ€

zplug "username/reponame", hook-build:"make install"

Quick vocab check so nobody's lost: the word package means a string in exactly this format β€” "username/reponame". That's it, that's the whole definition, no cap. πŸ¦‹


🌸 DESCRIPTION 🌸

Okay so here's the tea β˜• β€” when you use the hook-build tag, you get to decide whether the package you're installing lands as the plugin or as the command. Your call, your rules, main character energy. πŸ‘‘

Table 1. zplug hook-build tag

  • Possive Values (yes the typo is canon, we respect the lore πŸ™ˆ): (shell commands)
  • Default value: (none)

And plot twist β€” you can also change that default value with the zstyle command:

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

Slay. Now your default isn't a whole lot of nothing. ✨


🌈 EXAMPLES 🌈

Grant a right to execute 🫢:

$ zplug "b4b4r07/79ee61f7c140c63d2786" \
    as:command, \
    from:gist, \
    hook-build:"chmod 755 my_script.sh"

Not me setting up the permissions after the install like a genius. The way that chmod 755 just ✨works✨. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘


🧚 FURTHER DOCUMENTATION 🧚

Check the references in the official wiki page to get started with zplug. Lowkey warning though: the wiki may perhaps be overwhelming for first-time users. 😭 You're built different, you'll survive. πŸ’œ


⭐ AUTHORS ⭐

zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07). Many people have contributed to it β€” a whole community, fr fr. 🌸


πŸ’– COPYING πŸ’–

Copyright (C) 2015-2016 Masaki Ishiyama

MIT License


πŸ“ REPORTING BUGS πŸ“

Report bugs to the zplug issues. Don't suffer in silence bestie, tell the maintainers. πŸ“£


Aww okay that's the whole page. Big kiss to the ZPLUG Manual, dated 11/21/2016 β€” iconic since day one. Periodt. πŸ’…βœ¨πŸŽ€
πŸ“¦ where this page comes from