an anti-fetch script generator with mostly hard-coded values, dynamic modules and optimisations
divifetch is a build-time fetch script compiler.
it reads a simple config file and generates a program that renders ASCII art with dynamic content from pluggable modules.
unlike other fetch scripts that parse configs and fork processes at every run, divifetch moves most of the work to compile time - producing a binary that's faster, smaller, and dependency-freer than any traditional fetch script could be.
- everything is hard-coded and statically batched
- strict no dead code policy
- runtime dependency-free due to static linking (except macOS)
- support for Linux, macOS, FreeBSD and OpenBSD
- easily extensible module system
- multiple backends (V, Zig)
- polyglot module support (C, C++, Rust, D, V)
- multi-config random selection
- Unicode and ANSI escape code support
# install blip
v install https://git.vorelabs.dev/vorelabs/blip.git
# clone the repo
git clone https://git.vorelabs.dev/vorelabs/divifetch.git
cd divifetch
# generate the source code, build script and run it
v run generator
# run the generated fetch
./target/divifetchcan be found here
can be found here
(outdated as of v4.0)
divifetch is inspired by nofetch, the world's fastest fetch script ever made. according to its author:
fetch scripts are dumb and overrated and are in every r/unixporn post
and i agree with him.
the concept of a "fetch script" itself is flawed - it implies that trying to optimize fetching large amounts of unnecessary information (which never or almost never changes) is going to make much performance difference.
one might try to circumvent this by hard-coding values into the config file, but even then the fetch script is still reading a useless config file and assembling every module/entry on the file.
unfortunately for me, i do enjoy the aesthetic value that having something (including a fetch script) on shell startup brings. that led to me creating divifetch.
Mirrors: diviocity disroot codeberg git.gay gitea rocketgit salsa framagit gitlab github
