From 3eeb0db4be4be7a423df2cc98bdb0fb214ba20cb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 21:17:25 +0300 Subject: [PATCH] pfetch: Added crux support --- pfetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pfetch b/pfetch index 60b4078..49421b1 100755 --- a/pfetch +++ b/pfetch @@ -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*)