ZPLUG-DEPTH(5)
π ZPLUG-DEPTH π
okay so bestie, we're doing the zplug-depth page from the ZPLUG Manual, and honestly? it's a whole vibe. it's all about how many commits you wanna drag along when zplug clones a repo for you. let's get into it π«Ά
β¨ NAME β¨
zplug-depth β the number of commits to include in the cloned repository π
πΈ SYNOPSIS πΈ
zplug "username/reponame", depth:10
quick vocab moment, bestie: the word package here means a string in this exact format: "username/reponame". that's it, that's the package. π
π¦ DESCRIPTION π¦
so here's the tea β β by using the depth tag, you can create a shallow clone with a history truncated to the specified number of commits. less history, less to download, iconic behavior honestly.
and listen: Depth 0 means the whole history. no truncation, no shortcuts, the entire lore. π
here's the table of zplug depth tag values (yes it's a table, we're doing bullets, it's the same info i promise):
Table 1. zplug detph tag (that typo is in the original, i'm just the messenger π)
- Possible Values β
(non-negative number) - Default value β
0
and bestie, plot twist: you can change that default value with the zstyle command:
$ zstyle ":zplug:tag" depth 10
lowkey the move if you want every clone to be shallow by default. no cap. β¨
π EXAMPLES π
Shallow clone, coming right up:
$ zplug "b4b4r07/enhancd", \
as:plugin, \
use:enhancd.sh \
depth:1
one commit of history, that's it, minimal queen energy π
π 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.
fr fr, if the wiki feels like a lot, that's normal β take it slow, bestie π§
π AUTHORS π
zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07). Many people have contributed to it.
shoutout to every single contributor, y'all ate π₯
π COPYING π
Copyright (C) 2015-2016 Masaki Ishiyama
MIT License
π REPORTING BUGS π
Report bugs to the zplug issues
not me begging you to actually file the issue instead of just suffering in silence π
and that's the whole page, bestie! this one came from the ZPLUG Manual, version dated 11/21/2016, and it lives at ZPLUG-DEPTH(5) in the manual pages. go forth and shallow clone responsibly πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: zplug 2.4.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms