ZPLUG-RENAME-TO(5)

🌸 ZPLUG-RENAME-TO(5) 🌸

okay bestie, welcome to the zplug-rename-to page from the ZPLUG Manual πŸ’– this is a section-5 file (that's the file formats and conventions girlies, iykyk) and it's literally just about one tiny little tag that does one big slay thing: renaming stuff. let's get into it 🫢


✨ NAME ✨

zplug-rename-to β€” specify the filename you want to rename to πŸŽ€


🌈 SYNOPSIS 🌈

zplug "username/reponame", rename-to:a.sh

just so we're all on the same page: the word package means the string that looks like this: "username/reponame". that's it, that's the whole format, periodt πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so like. when you use the rename-to tag, you get to rename the package to whatever you want it to be instead. it's giving glow-up. it's giving rebrand. iconic.

⚠️ heads up though: this is only valid with as:command. if you're not using as:command, this tag is not gonna do anything for you, no cap.

here's the vibe check on what values it takes:

  • Possible values β€” (rename) ✨
  • Default value β€” (none) πŸ™ˆ

πŸ’œ one more thing πŸ’œ

besides all that, you can use the zstyle command to change the default value... but ngl, it's impractical. so like, don't. but you can. your call bestie πŸ“


🧚 EXAMPLES 🧚

Renaming fzf-bin to fzf β€” the classic. look at her go:

$ zplug Β΄junegunn/fzf-binΒ΄, \
    from:gh-r, \
    as:command, \
    rename-to:fzf, \
    use:Β΄*darwin*amd64*Β΄

Renaming a command with the string captured with the use tag β€” okay this one is so clever, it grabs the captured bit and uses it as the new name:

zplug Β΄b4b4r07/httpstatΒ΄, \
    as:command, \
    use:Β΄(*).shΒ΄, \
    rename-to:Β΄$1Β΄

see that $1? that's the capture from use:Β΄(*).shΒ΄ flowing straight into the rename. chef's kiss πŸ˜­πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€


πŸ“š FURTHER DOCUMENTATION πŸ“š

the references live over on the official wiki page if you wanna get started with zplug fr fr. fair warning though β€” the wiki may perhaps be overwhelming for first-time users. it's a lot. take your time, hydrate, you got this πŸ’–


πŸ‘‘ AUTHORS πŸ‘‘

zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07) ⭐ and many people have contributed to it β€” shoutout to the whole squad 🫢


πŸ“ COPYING πŸ“

Copyright (C) 2015-2016 Masaki Ishiyama

MIT License β€” slay, permissive, use it freely bestie πŸ’…


πŸ› REPORTING BUGS πŸ›

found a bug? report bugs to the zplug issues. don't suffer in silence, that's not the vibe πŸ’€


ZPLUG Manual 🌸 12/28/2016 🌸 ZPLUG-RENAME-TO(5)

okay that's the whole page!! go forth and rename things, bestie β€” you're the main character of your own dotfiles πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from