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.
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 jsonandjqto run onefetch once to detect if there's noLanguagesInfo.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 markupmost of the time, but I have some repos that have meaningful files (like dockercompose.yaml) but no programming languages.