mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Distro [GuixSD]: Add version and shorthand option
This commit is contained in:
5
neofetch
5
neofetch
@@ -91,7 +91,10 @@ get_distro() {
|
|||||||
distro="$(lsb_release $lsb_flags)"
|
distro="$(lsb_release $lsb_flags)"
|
||||||
|
|
||||||
elif type -p guix >/dev/null; then
|
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
|
elif type -p crux >/dev/null; then
|
||||||
distro="$(crux)"
|
distro="$(crux)"
|
||||||
|
Reference in New Issue
Block a user