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
- debian bookworm: zplug 2.4.2-2 Β· MIT
- debian trixie: zplug 2.4.2-2 Β· MIT
- nixpkgs unstable: zplug 2.4.2
- ubuntu jammy: zplug 2.4.2-1 Β· MIT
- ubuntu noble: zplug 2.4.2-2 Β· MIT
- ubuntu resolute: zplug 2.4.2-3 Β· MIT
- ubuntu stonking: zplug 2.4.2-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms