#1705·onefetch

Fallback to all types if the selected types aren't present

Author: aarondillCreated Mar 2, 2026Updated Mar 3, 2026
Labelsenhancement

Summary

Ideally, I'd like to use the default -T, but if there are no matches, instead of displaying no image and no Languages, I'd like to fall back to -T programming markup prose data.

Alternative: use onefetch -o json and jq to run onefetch once to detect if there's no LanguagesInfo.languagesWithPercentage, then regenerate onefetch output with the right argument. This requires running onefetch twice and parsing the output

Motivation

I'd like to use the default -T programming markup most of the time, but I have some repos that have meaningful files (like docker compose.yaml) but no programming languages.