Git Product home page Git Product logo

Comments (3)

CarterLi avatar CarterLi commented on August 24, 2024

Does fastfetch -s os --os-format '{id-like}' work for you?

from fastfetch.

ParticleMon avatar ParticleMon commented on August 24, 2024

Does fastfetch -s os --os-format '{id-like}' work for you?

Relative to my request, partially. On LM, in addition to the logo, this displays "OS: ubuntu debian"; thus not each distro's code name nor version number.

from fastfetch.

ParticleMon avatar ParticleMon commented on August 24, 2024

At least on my distro, this file contains the code name and version of the immediate upstream distro:
/etc/upstream-release/lsb-release

This tailored command module lacks only the upstream's upstream version:

    {
        "type": "command",
        "text": "sed 's/DISTRIB_RELEASE=/Ubuntu /;t;d' /etc/upstream-release/lsb-release | tr -d '\n'; sed 's/DISTRIB_CODENAME=/ /;t;d' /etc/upstream-release/lsb-release | tr -d '\"\n'; echo -n ', Debian '; cat /etc/debian_version",
        "key": "Upstream"
    }

Possibilities for obtaining all upstream distro lineage info include: 1. from the OS (currently impossible?), 2. hard-coded (possible), 3. another program (unknown), or 4. an online file (unknown, but ideally something like a text version of https://itsfoss.com/linux-code-names that's as thorough as https://distrowatch.com).

from fastfetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.