From c0b53c06068584673bbd8b292a066cfca7ba1569 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 29 Aug 2016 21:36:57 +0700 Subject: [PATCH] Added distro detection --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index 96e85e53..28a27a82 100755 --- a/neofetch +++ b/neofetch @@ -121,6 +121,9 @@ getdistro() { if type -p lsb_release >/dev/null 2>&1; then distro="$(lsb_release -d 2>/dev/null | awk -F ':' '/Description/ {printf $2}')" + elif type -p guix >/dev/null 2>&1; then + distro="GuixSD" + elif type -p crux >/dev/null 2>&1; then distro="$(crux)"