Added distro detection
This commit is contained in:
parent
06a3f809cc
commit
c0b53c0606
1 changed files with 3 additions and 0 deletions
3
neofetch
3
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)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue