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

Improve detect NixOS version - #2157

Open
Izorkin wants to merge 1 commit into
dylanaraps:masterfrom
Izorkin:improve-detect-nixos
Open

Izorkin wants to merge 1 commit into
dylanaraps:masterfrom
Izorkin:improve-detect-nixos

Conversation

@Izorkin

@Izorkin Izorkin commented Jul 18, 2022

Copy link
Copy Markdown

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

hykilpikonna commented Jul 30, 2022 •

Copy link
Copy Markdown

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

image

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

Copy link
Copy Markdown

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

Izorkin commented Jul 31, 2022

Copy link
Copy Markdown
Author

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

This branch has not been deployed

No deployments
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