pfetch: Added crux support

This commit is contained in:
Dylan Araps 2019-09-24 21:17:25 +03:00
parent bcf4cf44da
commit 3eeb0db4be

6
pfetch
View File

@ -109,10 +109,16 @@ get_os() {
case $os in
Linux*)
# TODO: Some distributions don't support '/etc/os-release'.
# Bedrock support is something I'd like to add for example.
# Disable warning about shellcheck not being able
# to read '/etc/os-release'. This is fine.
# shellcheck source=/dev/null
. /etc/os-release && distro=$PRETTY_NAME
# CRUX does its own thing entirely, go CRUX!
command -v crux >/dev/null && distro=$(crux)
;;
Darwin*)