Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Improve detect NixOS version #2157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Izorkin
Copy link

@Izorkin Izorkin commented Jul 18, 2022

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

@hykilpikonna
Copy link

hykilpikonna commented Jul 30, 2022

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

image

hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Jul 30, 2022
…sion

Upstream PR: dylanaraps/neofetch#2157
Thanks to @Izorkin

Co-authored-by: Izorkin <izorkin@elven.pw>
@hykilpikonna
Copy link

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.

@Izorkin
Copy link
Author

Izorkin commented Jul 31, 2022

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
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants