ZPLUG-USE(5)

πŸ“¦ version 2.4.2, in nixpkgs unstable

🌸 ZPLUG-USE(5) 🌸

okay so this is a page from the zplug manual bestie, and it's all about the use tag. sit down, grab a boba, we're gonna get you fluent πŸ’…


✨ NAME ✨

zplug-use β€” tell zplug the pattern of the files it should source, or the thing it should slap onto your $PATH


πŸ¦‹ SYNOPSIS πŸ¦‹

zplug "username/reponame", use:plugin

real quick, when we say package we mean a string shaped exactly like "username/reponame". that's the whole vibe, no cap.


πŸ’– DESCRIPTION πŸ’–

so with the use tag you get to pick which files actually get loaded. you're handing zplug a pattern:

  • for a plugin, it's the pattern of the files to source 🫢
  • for a command, it's the relative path from the package root of the file to add to $PATH πŸ”₯

super handy, like when you're rolling with from:gh-r you can go use:"*darwin*{amd,386}*" and it just works. iconic. if you wanna use extended glob though, scroll down to the later section about setting the zstyle, okurrr? ✨

Table 1. zplug use tag

  • Possible values β€” (file patterns)
  • Default value β€” *.zsh

and get this, you can change the default with the zstyle command:

$ zstyle ":zplug:tag" use "*.sh"

not me casually rewriting defaults 😌


🌈 EXAMPLES 🌈

Case of :

$ zplug "b4b4r07/enhancd" \
    as:plugin, \
    use:"*.sh"

Case of GitHub Release:

$ zplug "peco/peco" \
    as:command, \
    from:gh-r, \
    use:"*darwin*"

πŸ‘‘ SEE ALSO πŸ‘‘


πŸŽ€ FURTHER DOCUMENTATION πŸŽ€

peep the references on the official wiki page to get started with zplug. fair warning bestie, the wiki may perhaps be a liiittle overwhelming for first-time users 😭 β€” you got this tho πŸ’œ


🧚 AUTHORS 🧚

zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07). many people have contributed to it. legends only 🌟


πŸ’€ COPYING πŸ’€

Copyright (C) 2015-2016 Masaki Ishiyama

MIT License


πŸ“ REPORTING BUGS πŸ“

Report bugs to the zplug issues. (fr fr, they wanna know πŸ™ˆ)


and that's the whole page bestie, go source something slay πŸ’…

okay bye, this was zplug manual, 11/21/2016 edition β€” mwah 🫢✨

πŸ“¦ where this page comes from