From 8f7b330bf721cb4fbeff1f32f5fecda19296dcba Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 18 May 2017 21:38:07 +0700 Subject: [PATCH] Distro [GuixSD]: Add version and shorthand option --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index da64c02e..9b852186 100755 --- a/neofetch +++ b/neofetch @@ -91,7 +91,10 @@ get_distro() { distro="$(lsb_release $lsb_flags)" elif type -p guix >/dev/null; then - distro="GuixSD" + case "$distro_shorthand" in + "on" | "tiny") distro="GuixSD" ;; + *) distro="GuixSD $(guix system -V | awk 'NR==1{printf $5}')" + esac elif type -p crux >/dev/null; then distro="$(crux)"