Added distro detection
This commit is contained in:
parent
06a3f809cc
commit
c0b53c0606
3
neofetch
3
neofetch
|
@ -121,6 +121,9 @@ getdistro() {
|
||||||
if type -p lsb_release >/dev/null 2>&1; then
|
if type -p lsb_release >/dev/null 2>&1; then
|
||||||
distro="$(lsb_release -d 2>/dev/null | awk -F ':' '/Description/ {printf $2}')"
|
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
|
elif type -p crux >/dev/null 2>&1; then
|
||||||
distro="$(crux)"
|
distro="$(crux)"
|
||||||
|
|
||||||
|
|
Reference in New Issue