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 withas:command. if you're not usingas: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
- 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