neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Improve detect NixOS version

Open Izorkin opened this issue 2 years ago • 3 comments

Description

Improve detect NixOS version

Before PR:

neofetch --off --distro_shorthand on | grep OS
OS: nixos 22.11 x86_64

neofetch --off --distro_shorthand tiny | grep OS
OS: nixos x86_64

neofetch --off --distro_shorthand off | grep OS
OS: NixOS 22.11 (Raccoon) x86_64

After PR:

neofetch --off --distro_shorthand on | grep OS
OS: NixOS 22.11 (Raccoon) x86_64

neofetch --off --distro_shorthand tiny | grep OS
OS: NixOS x86_64

neofetch --off --distro_shorthand off | grep OS
OS: NixOS 22.11.git.31109649164 (Raccoon) x86_64

Izorkin avatar Jul 18 '22 16:07 Izorkin

It looks kind of long but anyways... thanks!

image

hykilpikonna avatar Jul 30 '22 21:07 hykilpikonna

Thank you for your contribution!

This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also serves as an updated version of neofetch, addressing many pull requests that are not merged in the original repo.

hykilpikonna avatar Jul 30 '22 21:07 hykilpikonna

Neofetch does not display the OS build revision separately, so I suggested this variant.

The short version can be displayed with the following command:

neofetch --distro_shorthand on
...
OS: NixOS 22.11 (Raccoon) x86_64
...

Izorkin avatar Jul 31 '22 07:07 Izorkin